From 89d8cdd476c5f4d65bc3fd1089f092af42e2841c Mon Sep 17 00:00:00 2001 From: prascle Date: Fri, 12 Nov 2004 07:27:44 +0000 Subject: [PATCH] PR: mergefrom_BR_CCRT_11Nov04 --- configure.in.base | 25 +- idl/Makefile.in | 5 +- .../unix/config_files/ac_cxx_depend_flag.m4 | 40 ++- salome_adm/unix/config_files/ac_cxx_option.m4 | 4 +- salome_adm/unix/config_files/check_cas.m4 | 77 +++--- salome_adm/unix/config_files/check_lam.m4 | 1 + salome_adm/unix/config_files/check_mpi.m4 | 1 + salome_adm/unix/config_files/check_mpich.m4 | 7 +- .../unix/config_files/check_pthreads.m4 | 31 ++- salome_adm/unix/config_files/check_sip.m4 | 17 +- salome_adm/unix/config_files/check_vtk.m4 | 14 +- salome_adm/unix/config_files/production.m4 | 21 +- salome_adm/unix/config_files/python.m4 | 8 +- salome_adm/unix/make_commence.in | 20 +- .../Batch_APIInternalFailureException.cxx | 1 + .../Batch_APIInternalFailureException.hxx | 2 +- src/Batch/Batch_BatchManager.cxx | 1 + src/Batch/Batch_BatchManager.hxx | 11 +- src/Batch/Batch_BatchManagerCatalog.cxx | 1 + src/Batch/Batch_BatchManagerCatalog.hxx | 7 +- src/Batch/Batch_BatchManager_PBS.cxx | 1 + src/Batch/Batch_BatchManager_PBS.hxx | 6 +- src/Batch/Batch_BoolType.cxx | 1 + src/Batch/Batch_BoolType.hxx | 3 +- src/Batch/Batch_CharType.cxx | 1 + src/Batch/Batch_CharType.hxx | 3 +- src/Batch/Batch_ConnexionFailureException.cxx | 1 + src/Batch/Batch_ConnexionFailureException.hxx | 2 +- src/Batch/Batch_Couple.cxx | 1 + src/Batch/Batch_Couple.hxx | 15 +- src/Batch/Batch_CoupleType.cxx | 1 + src/Batch/Batch_CoupleType.hxx | 5 +- src/Batch/Batch_Date.cxx | 1 + src/Batch/Batch_Date.hxx | 7 +- src/Batch/Batch_DateType.cxx | 1 + src/Batch/Batch_DateType.hxx | 3 +- src/Batch/Batch_Environnement.cxx | 1 + src/Batch/Batch_Environnement.hxx | 3 +- src/Batch/Batch_FactBatchManager.cxx | 1 + src/Batch/Batch_FactBatchManager.hxx | 9 +- src/Batch/Batch_FactBatchManager_PBS.cxx | 1 + src/Batch/Batch_FactBatchManager_PBS.hxx | 3 - src/Batch/Batch_GenericException.cxx | 1 + src/Batch/Batch_GenericException.hxx | 7 +- src/Batch/Batch_GenericType.cxx | 1 + src/Batch/Batch_GenericType.hxx | 5 +- src/Batch/Batch_IntType.cxx | 1 + src/Batch/Batch_IntType.hxx | 3 +- src/Batch/Batch_InvalidArgumentException.cxx | 1 + src/Batch/Batch_InvalidArgumentException.hxx | 2 +- src/Batch/Batch_InvalidKeyException.cxx | 1 + src/Batch/Batch_InvalidKeyException.hxx | 2 +- src/Batch/Batch_Job.cxx | 1 + src/Batch/Batch_Job.hxx | 6 +- src/Batch/Batch_JobId.cxx | 1 + src/Batch/Batch_JobId.hxx | 10 +- src/Batch/Batch_JobInfo.cxx | 1 + src/Batch/Batch_JobInfo.hxx | 7 +- src/Batch/Batch_JobInfo_PBS.cxx | 1 + src/Batch/Batch_JobInfo_PBS.hxx | 6 +- src/Batch/Batch_Job_PBS.cxx | 1 + src/Batch/Batch_ListIsFullException.cxx | 1 + src/Batch/Batch_ListIsFullException.hxx | 2 +- src/Batch/Batch_LongType.cxx | 1 + src/Batch/Batch_LongType.hxx | 3 +- src/Batch/Batch_MapKey.cxx | 1 + src/Batch/Batch_MapKey.hxx | 19 +- .../Batch_NotYetImplementedException.hxx | 1 + src/Batch/Batch_Parametre.cxx | 1 + src/Batch/Batch_Parametre.hxx | 81 +++--- src/Batch/Batch_PyVersatile.hxx | 1 + src/Batch/Batch_RunTimeException.cxx | 1 + src/Batch/Batch_RunTimeException.hxx | 2 +- src/Batch/Batch_StringType.cxx | 1 + src/Batch/Batch_StringType.hxx | 11 +- src/Batch/Batch_TypeMismatchException.cxx | 1 + src/Batch/Batch_TypeMismatchException.hxx | 2 +- src/Batch/Batch_Versatile.cxx | 1 + src/Batch/Batch_Versatile.hxx | 23 +- src/CASCatch/CASCatch_SignalsHandler.cxx | 2 +- src/Communication/MultiCommException.cxx | 1 + src/Communication/MultiCommException.hxx | 3 +- src/Communication/Receiver.cxx | 1 + src/Communication/ReceiverFactory.cxx | 1 + src/Communication/Receivers.cxx | 1 + src/Communication/SALOMEMultiComm.cxx | 1 + src/Communication/SALOME_Comm_i.cxx | 1 + src/Communication/SALOME_Comm_i.hxx | 1 - src/Communication/SenderFactory.cxx | 1 + src/Container/Component_i.cxx | 2 +- src/Container/SALOME_Container.cxx | 4 +- .../SALOME_Container_SignalsHandler.cxx | 1 + src/Container/SALOME_Container_i.hxx | 2 +- .../SALOME_DataTypeCatalog_Client.cxx | 2 +- .../SALOME_DataTypeCatalog_impl.cxx | 2 +- src/Event/SALOME_Event.cxx | 1 + src/HDFPersist/HDFascii.cc | 2 +- src/HDFPersist/HDFattribute.cc | 2 +- src/HDFPersist/HDFcontainerObject.cc | 2 +- src/HDFPersist/HDFconvert.cc | 2 +- src/HDFPersist/HDFdataset.cc | 2 +- src/HDFPersist/HDFexplorer.cc | 2 +- src/HDFPersist/HDFfile.cc | 2 +- src/HDFPersist/HDFgroup.cc | 2 +- src/HDFPersist/HDFinternalObject.cc | 2 +- src/HDFPersist/HDFobject.cc | 2 +- src/HDFPersist/test3.cxx | 2 +- src/HDFPersist/test4.cxx | 2 +- src/HDFPersist/test5.cxx | 2 +- src/HDFPersist/test6.cxx | 2 +- src/HDFPersist/test7.cxx | 2 +- src/HDFPersist/test8.cxx | 2 +- src/HDFPersist/test9.cxx | 2 +- src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx | 2 +- src/LifeCycleCORBA/SALOME_LifeCycleCORBA.hxx | 2 +- src/LifeCycleCORBA/TestLifeCycleCORBA.cxx | 2 +- src/Loader/InquireServersQThread.cxx | 2 +- src/Loader/SALOME_Session_Loader.cxx | 2 +- src/Logger/SALOME_Logger_Server.cxx | 3 +- src/Logger/SALOME_Trace.cxx | 2 +- src/MPIContainer/MPIContainer_i.cxx | 246 +++++++++++++++--- src/MPIContainer/MPIContainer_i.hxx | 49 +++- src/MPIContainer/MPIObject_i.cxx | 38 +-- src/MPIContainer/MPIObject_i.hxx | 4 +- src/MPIContainer/Makefile.in | 14 +- src/MPIContainer/SALOME_MPIContainer.cxx | 83 +++--- .../SALOME_MPILifeCycleCORBA.cxx | 16 +- .../SALOME_MPILifeCycleCORBA.hxx | 4 +- .../TestMPILifeCycleCORBA.cxx | 1 + src/MSG2QM/msg2qm.cxx | 2 +- src/Makefile.in | 2 +- .../SALOME_ModuleCatalog_Handler.cxx | 1 + src/NOTIFICATION_SWIG/NOTIFICATION_Swig.cxx | 2 +- src/NOTIFICATION_SWIG/NOTIFICATION_Swig.hxx | 1 - src/NamingService/ServiceUnreachable.cxx | 2 +- src/Notification/NOTIFICATION.cxx | 3 +- src/Notification/NOTIFICATION_Consumer.cxx | 2 +- src/Notification/NOTIFICATION_Supplier.cxx | 2 +- src/OBJECT/SALOME_AISObject.cxx | 2 +- src/OBJECT/SALOME_AISShape.cxx | 2 +- src/OBJECT/SALOME_InteractiveObject.cxx | 2 +- src/OCCViewer/OCCViewer.cxx | 2 +- src/OCCViewer/OCCViewer_AISSelector.cxx | 2 +- src/OCCViewer/OCCViewer_Prs.cxx | 1 + src/OCCViewer/OCCViewer_VService.cxx | 2 +- src/OCCViewer/OCCViewer_ViewFrame.cxx | 2 +- src/OCCViewer/OCCViewer_ViewPort3d.cxx | 2 +- src/OCCViewer/OCCViewer_Viewer3d.cxx | 2 +- src/PatchQt/qsplitterP.cxx | 2 +- src/PatchQt/qworkspaceP.cxx | 2 +- src/Plot2d/Plot2d.cxx | 1 + src/Plot2d/Plot2d_Curve.cxx | 2 +- src/Plot2d/Plot2d_CurveContainer.cxx | 2 +- src/Plot2d/Plot2d_FitDataDlg.cxx | 1 + src/Plot2d/Plot2d_Prs.cxx | 1 + src/Plot2d/Plot2d_SetupViewDlg.cxx | 1 + src/Plot2d/Plot2d_ViewFrame.cxx | 1 + src/Registry/RegistryConnexion.cxx | 3 +- src/Registry/RegistryConnexion.hxx | 4 +- src/Registry/RegistryService.cxx | 3 +- src/Registry/RegistryService.hxx | 7 +- src/RegistryDisplay/HelpWindow.cxx | 2 +- src/RegistryDisplay/IntervalWindow.cxx | 1 + src/RegistryDisplay/IntervalWindow.hxx | 1 - src/RegistryDisplay/RegWidget.cxx | 2 +- src/RegistryDisplay/RegWidgetFactory.cxx | 2 +- .../SALOME_RessourcesCatalog_Client.cxx | 2 +- .../SALOME_RessourcesCatalog_impl.cxx | 2 +- src/SALOMEDS/SALOMEDS_AttLong_i.cxx | 2 +- src/SALOMEDS/SALOMEDS_AttReal_i.cxx | 2 +- src/SALOMEDS/SALOMEDS_AttributeComment_i.cxx | 2 +- src/SALOMEDS/SALOMEDS_AttributeDrawable_i.cxx | 2 +- .../SALOMEDS_AttributeExpandable_i.cxx | 2 +- .../SALOMEDS_AttributeExternalFileDef_i.cxx | 2 +- src/SALOMEDS/SALOMEDS_AttributeFileType_i.cxx | 2 +- src/SALOMEDS/SALOMEDS_AttributeIOR_i.cxx | 2 +- src/SALOMEDS/SALOMEDS_AttributeInteger_i.cxx | 2 +- src/SALOMEDS/SALOMEDS_AttributeLocalID_i.cxx | 2 +- src/SALOMEDS/SALOMEDS_AttributeName_i.cxx | 2 +- src/SALOMEDS/SALOMEDS_AttributeOpened_i.cxx | 2 +- .../SALOMEDS_AttributePersistentRef_i.cxx | 2 +- src/SALOMEDS/SALOMEDS_AttributePixMap_i.cxx | 2 +- .../SALOMEDS_AttributePythonObject_i.cxx | 2 +- .../SALOMEDS_AttributeSelectable_i.cxx | 2 +- .../SALOMEDS_AttributeSequenceOfInteger_i.cxx | 2 +- .../SALOMEDS_AttributeSequenceOfReal_i.cxx | 2 +- .../SALOMEDS_AttributeStudyProperties_i.cxx | 2 +- .../SALOMEDS_AttributeTableOfInteger_i.cxx | 2 +- .../SALOMEDS_AttributeTableOfReal_i.cxx | 2 +- .../SALOMEDS_AttributeTableOfString_i.cxx | 2 +- src/SALOMEDS/SALOMEDS_AttributeTarget_i.cxx | 2 +- .../SALOMEDS_AttributeTextColor_i.cxx | 2 +- ...SALOMEDS_AttributeTextHighlightColor_i.cxx | 2 +- src/SALOMEDS/SALOMEDS_AttributeTreeNode_i.cxx | 2 +- src/SALOMEDS/SALOMEDS_AttributeUserID_i.cxx | 2 +- .../SALOMEDS_BasicAttributeFactory.cxx | 2 +- src/SALOMEDS/SALOMEDS_BasicAttribute_i.cxx | 2 +- src/SALOMEDS/SALOMEDS_ChildIterator_i.cxx | 2 +- ...aMapIteratorOfDataMapOfIntegerString_0.cxx | 1 + ..._DataMapIteratorOfDataMapStringLabel_0.cxx | 4 +- ..._DataMapNodeOfDataMapOfIntegerString_0.cxx | 1 + ...MEDS_DataMapNodeOfDataMapStringLabel_0.cxx | 2 +- .../SALOMEDS_DataMapOfIntegerString_0.cxx | 3 +- .../SALOMEDS_DataMapStringLabel_0.cxx | 4 +- src/SALOMEDS/SALOMEDS_DrawableAttribute.cxx | 2 +- src/SALOMEDS/SALOMEDS_ExpandableAttribute.cxx | 2 +- src/SALOMEDS/SALOMEDS_GenericAttribute_i.cxx | 2 +- src/SALOMEDS/SALOMEDS_IORAttribute.cxx | 2 +- src/SALOMEDS/SALOMEDS_LocalIDAttribute.cxx | 2 +- src/SALOMEDS/SALOMEDS_OCAFApplication.cxx | 2 +- src/SALOMEDS/SALOMEDS_OpenedAttribute.cxx | 2 +- src/SALOMEDS/SALOMEDS_PersRefAttribute.cxx | 2 +- src/SALOMEDS/SALOMEDS_PixMapAttribute.cxx | 2 +- .../SALOMEDS_PythonObjectAttribute.cxx | 2 +- .../SALOMEDS_SComponentIterator_i.cxx | 2 +- src/SALOMEDS/SALOMEDS_SComponent_i.cxx | 2 +- src/SALOMEDS/SALOMEDS_SObject_i.cxx | 2 +- src/SALOMEDS/SALOMEDS_SelectableAttribute.cxx | 2 +- .../SALOMEDS_SequenceOfIntegerAttribute.cxx | 2 +- .../SALOMEDS_SequenceOfRealAttribute.cxx | 2 +- src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx | 2 +- src/SALOMEDS/SALOMEDS_StudyManager_i.cxx | 2 +- .../SALOMEDS_StudyPropertiesAttribute.cxx | 2 +- src/SALOMEDS/SALOMEDS_Study_i.cxx | 2 +- .../SALOMEDS_TableOfIntegerAttribute.cxx | 2 +- .../SALOMEDS_TableOfRealAttribute.cxx | 2 +- .../SALOMEDS_TableOfStringAttribute.cxx | 2 +- src/SALOMEDS/SALOMEDS_TargetAttribute.cxx | 2 +- src/SALOMEDS/SALOMEDS_TextColorAttribute.cxx | 2 +- .../SALOMEDS_TextHighlightColorAttribute.cxx | 2 +- src/SALOMEDS/SALOMEDS_UseCaseBuilder_i.cxx | 2 +- src/SALOMEDS/SALOMEDS_UseCaseIterator_i.cxx | 2 +- src/SALOMEGUI/QAD_Application.cxx | 2 +- src/SALOMEGUI/QAD_Config.cxx | 2 +- src/SALOMEGUI/QAD_DirListDlg.cxx | 2 +- src/SALOMEGUI/QAD_FileDlg.cxx | 2 +- src/SALOMEGUI/QAD_Help.cxx | 2 +- src/SALOMEGUI/QAD_HelpWindow.cxx | 2 +- src/SALOMEGUI/QAD_LeftFrame.cxx | 2 +- src/SALOMEGUI/QAD_ListMenuIdAction.cxx | 2 +- src/SALOMEGUI/QAD_ListPopupMenu.cxx | 2 +- src/SALOMEGUI/QAD_Menus.cxx | 2 +- src/SALOMEGUI/QAD_Message.cxx | 2 +- src/SALOMEGUI/QAD_MessageBox.cxx | 2 +- src/SALOMEGUI/QAD_NameBrowser.cxx | 2 +- src/SALOMEGUI/QAD_ObjectBrowserItem.cxx | 2 +- src/SALOMEGUI/QAD_Operation.cxx | 2 +- src/SALOMEGUI/QAD_OperatorMenus.cxx | 2 +- src/SALOMEGUI/QAD_ParserSettings.cxx | 2 +- src/SALOMEGUI/QAD_Popup.cxx | 2 +- src/SALOMEGUI/QAD_ResourceMgr.cxx | 2 +- src/SALOMEGUI/QAD_Settings.cxx | 2 +- src/SALOMEGUI/QAD_SpinBoxDbl.cxx | 2 +- src/SALOMEGUI/QAD_Splitter.cxx | 2 +- src/SALOMEGUI/QAD_Tools.cxx | 2 +- src/SALOMEGUI/QAD_XmlHandler.cxx | 2 +- src/SALOMEGUI/SALOMEGUI.cxx | 1 + src/SALOMEGUI/SALOMEGUI_AboutDlg.cxx | 2 +- .../SALOMEGUI_ActivateComponentDlg.cxx | 2 +- src/SALOMEGUI/SALOMEGUI_CloseDlg.cxx | 2 +- src/SALOMEGUI/SALOMEGUI_Desktop.cxx | 2 +- .../SALOMEGUI_ExternalBrowserDlg.cxx | 2 +- src/SALOMEGUI/SALOMEGUI_ImportOperation.cxx | 2 +- src/SALOMEGUI/SALOMEGUI_LoadStudiesDlg.cxx | 2 +- src/SALOMEGUI/SALOMEGUI_NameDlg.cxx | 2 +- src/SALOMEGUI/SALOMEGUI_OpenWith.cxx | 2 +- .../SALOMEGUI_QtCatchCorbaException.cxx | 2 +- src/SALOMEGUI/SALOMEGUI_SetValueDlg.cxx | 2 +- src/SALOMEGUI/SALOMEGUI_SetupCurveDlg.cxx | 2 +- .../SALOMEGUI_StudyPropertiesDlg.cxx | 2 +- src/SALOMEGUI/SALOMEGUI_TableDlg.cxx | 2 +- src/SALOMEGUI/SALOMEGUI_TrihedronSizeDlg.cxx | 2 +- src/SALOMEGUI/SALOMEGUI_ViewChoiceDlg.cxx | 2 +- ...MapIteratorOfDataMapOfIOMapOfInteger_0.cxx | 4 +- ...DataMapNodeOfDataMapOfIOMapOfInteger_0.cxx | 2 +- .../SALOME_DataMapOfIOMapOfInteger_0.cxx | 4 +- src/SALOMEGUI/SALOME_Filter.cxx | 2 +- src/SALOMEGUI/SALOME_ListIO_0.cxx | 4 +- .../SALOME_ListIteratorOfListIO_0.cxx | 2 +- .../SALOME_ListIteratorOfListOfFilter_0.cxx | 2 +- src/SALOMEGUI/SALOME_ListNodeOfListIO_0.cxx | 2 +- .../SALOME_ListNodeOfListOfFilter_0.cxx | 2 +- src/SALOMEGUI/SALOME_ListOfFilter_0.cxx | 2 +- src/SALOMEGUI/SALOME_NumberFilter.cxx | 2 +- src/SALOMEGUI/SALOME_TypeFilter.cxx | 2 +- src/SALOMELocalTrace/LocalTraceBufferPool.cxx | 4 +- src/SALOMELocalTrace/utilities.h | 5 +- src/SALOME_PYQT/SALOME_PYQT_GUI.cxx | 2 + src/SALOME_PYQT/SalomePyQt.cxx | 2 +- src/SUPERVGraph/SUPERVGraph.cxx | 2 +- src/SUPERVGraph/SUPERVGraph_Graph.cxx | 2 +- src/SUPERVGraph/SUPERVGraph_ViewFrame.cxx | 2 +- src/Session/SALOME_Session_QThread.cxx | 2 +- src/Session/SALOME_Session_Server.cxx | 1 + src/Session/SALOME_Session_SignalsHandler.cxx | 1 + src/Session/Session_ServerLauncher.cxx | 1 + src/Session/Session_ServerLauncher.hxx | 7 +- src/Session/Session_ServerThread.hxx | 2 - src/TOOLSDS/SALOMEDS_Tool.cxx | 2 +- src/TOOLSGUI/ToolsGUI.cxx | 2 +- src/TestContainer/SALOME_TestComponent_i.cxx | 2 +- src/TestContainer/TestLogger.cxx | 2 +- src/TestMPIContainer/TestMPIContainer.cxx | 1 + src/Utils/Utils_CommException.cxx | 2 +- src/Utils/Utils_CorbaException.hxx | 4 +- src/Utils/Utils_DESTRUCTEUR_GENERIQUE.cxx | 4 +- src/Utils/Utils_ExceptHandlers.cxx | 2 + src/Utils/Utils_SALOME_Exception.cxx | 2 +- src/Utils/Utils_SignalsHandler.cxx | 4 +- src/Utils/Utils_Timer.cxx | 4 +- src/VTKFilter/SALOME_GeometryFilter.cxx | 1 + src/VTKFilter/SALOME_PassThroughFilter.cxx | 1 + src/VTKFilter/SALOME_ShrinkFilter.cxx | 1 + src/VTKViewer/VTKViewer.cxx | 2 +- src/VTKViewer/VTKViewer_Filter.cxx | 1 + src/VTKViewer/VTKViewer_Prs.cxx | 1 + src/VTKViewer/VTKViewer_RenderWindow.cxx | 2 +- src/VTKViewer/VTKViewer_VectorText.cxx | 1 + 318 files changed, 890 insertions(+), 610 deletions(-) diff --git a/configure.in.base b/configure.in.base index 0eef838db..880355a61 100644 --- a/configure.in.base +++ b/configure.in.base @@ -14,7 +14,7 @@ # # Created from configure.in.base # - +AS_SHELL_SANITIZES AC_INIT(src) AC_CONFIG_AUX_DIR(salome_adm/unix/config_files) AC_CANONICAL_HOST @@ -48,6 +48,10 @@ echo Build root directory : $ROOT_BUILDDIR echo echo +dnl Modification B. Secher portage sur osf +AC_CHECK_PROG(SHELL,sh) +AC_SUBST(SHELL) + if test -z "$AR"; then AC_CHECK_PROGS(AR,ar xar,:,$PATH) fi @@ -86,7 +90,7 @@ dnl Fix up the INSTALL macro if it s a relative path. We want the dnl full-path to the binary instead. case "$INSTALL" in *install-sh*) - INSTALL='\${top_srcdir}'/salome_adm/unix/config_files/install-sh + INSTALL="${ROOT_SRCDIR}/salome_adm/unix/config_files/install-sh -c" ;; esac @@ -100,6 +104,8 @@ cc_ok=no dnl inutil car libtool dnl AC_PROG_CC AC_PROG_CXX +AC_CXX_WARNINGS +AC_CXX_TEMPLATE_OPTIONS AC_DEPEND_FLAG # AC_CC_WARNINGS([ansi]) cc_ok=yes @@ -107,15 +113,22 @@ cc_ok=yes dnl Library libdl : AC_CHECK_LIB(dl,dlopen) +dnl Library librt : for alpha/osf +AC_CHECK_LIB(rt,nanosleep) + dnl add library libm : AC_CHECK_LIB(m,ceil) -dnl -dnl Well we use sstream which is not in gcc pre-2.95.3 -dnl We must test if it exists. If not, add it in include ! +AC_CXX_USE_STD_IOSTREAM +AC_CXX_HAVE_SSTREAM + +dnl +dnl --------------------------------------------- +dnl testing linker +dnl --------------------------------------------- dnl -AC_CXX_HAVE_SSTREAM +AC_LINKER_OPTIONS echo echo --------------------------------------------- diff --git a/idl/Makefile.in b/idl/Makefile.in index 7de067f74..6e46e61bd 100644 --- a/idl/Makefile.in +++ b/idl/Makefile.in @@ -22,9 +22,8 @@ IDL_FILES = \ SALOME_Component.idl \ SALOME_TestComponent.idl \ SALOME_Registry.idl \ - TypeData.idl \ - MPIObject.idl \ - MPIContainer.idl \ + SALOME_MPIObject.idl \ + SALOME_MPIContainer.idl \ Logger.idl \ SALOME_GenericObj.idl \ SALOME_TestModuleCatalog.idl diff --git a/salome_adm/unix/config_files/ac_cxx_depend_flag.m4 b/salome_adm/unix/config_files/ac_cxx_depend_flag.m4 index 7c87413dd..9e3d4ecc9 100644 --- a/salome_adm/unix/config_files/ac_cxx_depend_flag.m4 +++ b/salome_adm/unix/config_files/ac_cxx_depend_flag.m4 @@ -35,17 +35,34 @@ ac_cv_depend_flag, echo "conftest.o: conftest.c" > conftest.verif echo "int main() { return 0; }" > conftest.c +dnl Evolution portage sur CCRT/osf system + case $host_os in + osf*) +dnl sur CCRT/osf pas d'equivalent de l'option -MG de gcc avec compilo natif +dnl on utilise donc gnu pour generer les dependances. + DEPCC=gcc + DEPCXX=g++ + DEPCXXFLAGS="-Wno-deprecated" + DIFFFLAGS="-w" + ;; + *) + DEPCC=${CC-cc} + DEPCXX=${CXX-c++} + DEPCXXFLAGS="\${CXXFLAGS}" + DIFFFLAGS="-b -B" + ;; + esac C_DEPEND_FLAG= for ac_C_DEPEND_FLAG in -xM -MM -M ; do rm -f conftest.d conftest.err - ${CC-cc} ${ac_C_DEPEND_FLAG} -c conftest.c 1> conftest.d 2> conftest.err + ${DEPCC} ${ac_C_DEPEND_FLAG} -c conftest.c 1> conftest.d 2> conftest.err if test -f conftest.u ; then mv conftest.u conftest.d fi rm -f conftest - diff -b -B conftest.d conftest.verif > conftest + diff ${DIFFFLAGS} conftest.d conftest.verif > conftest if test ! -s conftest ; then C_DEPEND_FLAG=${ac_C_DEPEND_FLAG} break @@ -54,12 +71,12 @@ ac_cv_depend_flag, dnl use gcc option -MG : asume unknown file will be construct later rm -f conftest.d conftest.err - ${CC-cc} ${C_DEPEND_FLAG} -MG -c conftest.c 1> conftest.d 2> conftest.err + ${DEPCC} ${C_DEPEND_FLAG} -MG -c conftest.c 1> conftest.d 2> conftest.err if test -f conftest.u ; then mv conftest.u conftest.d fi rm -f conftest - diff -b -B conftest.d conftest.verif > conftest + diff ${DIFFFLAGS} conftest.d conftest.verif > conftest if test ! -s conftest ; then C_DEPEND_FLAG=${C_DEPEND_FLAG}" -MG" fi @@ -70,7 +87,7 @@ dnl use gcc option -MG : asume unknown file will be construct later exit fi - echo -n " C : " ${C_DEPEND_FLAG} + printf " C : ${DEPCC} ${C_DEPEND_FLAG}" AC_LANG_CPLUSPLUS echo "conftest.o: conftest.cxx" > conftest.verif @@ -80,13 +97,13 @@ dnl use gcc option -MG : asume unknown file will be construct later for ac_CXX_DEPEND_FLAG in -xM -MM -M ; do rm -f conftest.d conftest.err - ${CXX-c++} ${ac_CXX_DEPEND_FLAG} -c conftest.cxx 1> conftest.d 2> conftest.err + ${DEPCXX} ${ac_CXX_DEPEND_FLAG} -c conftest.cxx 1> conftest.d 2> conftest.err if test -f conftest.u ; then mv conftest.u conftest.d fi rm -f conftest - diff -b -B conftest.d conftest.verif > conftest + diff ${DIFFFLAGS} conftest.d conftest.verif > conftest if test ! -s conftest ; then CXX_DEPEND_FLAG=${ac_CXX_DEPEND_FLAG} break @@ -95,12 +112,12 @@ dnl use gcc option -MG : asume unknown file will be construct later dnl use g++ option -MG : asume unknown file will be construct later rm -f conftest.d conftest.err - ${CXX-c++} ${CXX_DEPEND_FLAG} -MG -c conftest.cxx 1> conftest.d 2> conftest.err + ${DEPCXX} ${CXX_DEPEND_FLAG} -MG -c conftest.cxx 1> conftest.d 2> conftest.err if test -f conftest.u ; then mv conftest.u conftest.d fi rm -f conftest - diff -b -B conftest.d conftest.verif > conftest + diff ${DIFFFLAGS} conftest.d conftest.verif > conftest if test ! -s conftest ; then CXX_DEPEND_FLAG=${CXX_DEPEND_FLAG}" -MG" fi @@ -112,9 +129,12 @@ dnl use g++ option -MG : asume unknown file will be construct later exit fi - echo -n " C++ : " ${CXX_DEPEND_FLAG} + printf " C++ : ${DEPCXX} ${CXX_DEPEND_FLAG}" AC_LANG_RESTORE + AC_SUBST(DEPCC) + AC_SUBST(DEPCXX) + AC_SUBST(DEPCXXFLAGS) AC_SUBST(C_DEPEND_FLAG) AC_SUBST(CXX_DEPEND_FLAG) ]) diff --git a/salome_adm/unix/config_files/ac_cxx_option.m4 b/salome_adm/unix/config_files/ac_cxx_option.m4 index 4219c5a07..72ea0ab11 100644 --- a/salome_adm/unix/config_files/ac_cxx_option.m4 +++ b/salome_adm/unix/config_files/ac_cxx_option.m4 @@ -26,9 +26,9 @@ dnl dnl @author Bernard Secher - 15/01/2004 dnl AC_DEFUN([AC_CXX_OPTION], [ - AC_MSG_CHECKING(CXXFLAGS for $CXX in $1) + AC_MSG_CHECKING(wether $CXX accepts $1) cat > conftest.cxx < conftest.log 2>&1 var=`echo $1 | sed -e "s, .*$,," | sed -e "s,^-,,"` diff --git a/salome_adm/unix/config_files/check_cas.m4 b/salome_adm/unix/config_files/check_cas.m4 index 85d8f0c73..3b3f654f9 100644 --- a/salome_adm/unix/config_files/check_cas.m4 +++ b/salome_adm/unix/config_files/check_cas.m4 @@ -36,7 +36,6 @@ AC_SUBST(CAS_MODELER) AC_SUBST(CAS_OCAF) AC_SUBST(CAS_DATAEXCHANGE) AC_SUBST(CAS_LDFLAGS) - AC_SUBST(CAS_LDPATH) OWN_CONFIG_H=no @@ -47,7 +46,6 @@ CAS_LDFLAGS="" occ_ok=no own_config_h=no - dnl libraries directory location case $host_os in linux*) @@ -62,7 +60,7 @@ case $host_os in irix6.*) casdir=Linux ;; - osf4.*) + osf*) casdir=Linux ;; solaris2.*) @@ -73,6 +71,20 @@ case $host_os in ;; esac +AC_MSG_CHECKING(for OpenCascade directories) +if test -d ${CASROOT}/${casdir}/lib; then + CAS_LDPATH="-L$CASROOT/$casdir/lib " + AC_MSG_RESULT(yes) +else + if test -d ${CASROOT}/lib; then + CAS_LDPATH="-L$CASROOT/lib " + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) + fi +fi + + dnl were is OCC ? if test -z $CASROOT; then AC_MSG_WARN(You must provide CASROOT variable : see OCC installation manual) @@ -90,13 +102,19 @@ fi if test "x$occ_ok" = "xyes"; then +dnl test c++ compiler flag for unsigned character + for opt in -funsigned-char -unsigned ; do + AC_CXX_OPTION($opt,CAS_CXXFLAGS,flag=yes,flag=no) + if test "$flag" = "yes"; then + break + fi + done + dnl cascade headers CPPFLAGS_old="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS -DLIN -DLINTEL -DCSFDB -DNO_CXX_EXCEPTION -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -I$CASROOT/inc -I$CASROOT -I$KERNEL_ROOT_DIR/include/salome -Wno-deprecated -DHAVE_WOK_CONFIG_H" - CXXFLAGS_old="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS -funsigned-char" - + CAS_CPPFLAGS="-DOCC_VERSION_MAJOR=$OCC_VERSION_MAJOR -DLIN -DLINTEL -DCSFDB -DNO_CXX_EXCEPTION -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DHAVE_WOK_CONFIG_H -I$CASROOT/inc" + CPPFLAGS="$CPPFLAGS $CAS_CPPFLAGS" echo echo @@ -125,32 +143,21 @@ dnl cascade headers OWN_CONFIG_H=yes fi - CPPFLAGS="$CPPFLAGS -I$ROOT_BUILDDIR/salome_adm/unix" - AC_CHECK_HEADER(Standard_Type.hxx,occ_ok=yes ,occ_ok=no) - CPPFLAGS="$CPPFLAGS_old" - CXXFLAGS="$CXXFLAGS_old" fi AC_SUBST(OWN_CONFIG_H) if test "x$occ_ok" = xyes ; then - CAS_CPPFLAGS="-DOCC_VERSION_MAJOR=$OCC_VERSION_MAJOR -DLIN -DLINTEL -DCSFDB -DNO_CXX_EXCEPTION -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -I$CASROOT/inc -I$CASROOT -DHAVE_WOK_CONFIG_H" - CAS_CXXFLAGS="-funsigned-char" - AC_MSG_CHECKING(for OpenCascade libraries) - CPPFLAGS_old="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $CAS_CPPFLAGS -I$KERNEL_ROOT_DIR/include/salome -I$ROOT_BUILDDIR/salome_adm/unix -Wno-deprecated" - CXXFLAGS_old="$CXXFLAGS" - CXXFLAGS="$CXXFLAGS $CAS_CXXFLAGS" LIBS_old="$LIBS" - LIBS="$LIBS -L$CASROOT/$casdir/lib -lTKernel" + LIBS="$LIBS $CAS_LDPATH -lTKernel" + AC_CACHE_VAL(salome_cv_lib_occ,[ AC_TRY_LINK( -using namespace std; #include , size_t size; const Standard_CString aName="toto"; @@ -160,28 +167,36 @@ using namespace std; ]) occ_ok="$salome_cv_lib_occ" - CPPFLAGS="$CPPFLAGS_old" - CXXFLAGS="$CXXFLAGS_old" - LIBS="$LIBS_old" fi +CPPFLAGS="$CPPFLAGS_old" +LIBS="$LIBS_old" if test "x$occ_ok" = xno ; then AC_MSG_RESULT(no) AC_MSG_WARN(Opencascade libraries not found) else AC_MSG_RESULT(yes) - CAS_LDPATH="-L$CASROOT/$casdir/lib " CAS_KERNEL="$CAS_LDPATH -lTKernel -lTKMath" - CAS_OCAF="$CAS_LDPATH -lPTKernel -lTKCAF -lFWOSPlugin -lTKPShape -lTKPCAF -lTKStdSchema -lTKShapeSchema -lPAppStdPlugin -lTKPAppStd -lTKCDF" -dnl CAS_VIEWER="-L$CASROOT/$casdir/lib -lTKOpenGl -lTKV3d -lTKV2d -lTKService" + + # E.A. compatibility version 4 and 5.x + CAS_OCAF="$CAS_LDPATH -lPTKernel -lTKCAF -lFWOSPlugin -lTKPShape -lTKPCAF -lTKStdSchema -lTKShapeSchema -lPAppStdPlugin" + if test $OCC_VERSION_MAJOR -lt 5 ; then + CAS_OCAF="$CAS_OCAF -lTKPAppStd" + fi + CAS_OCAF="$CAS_OCAF -lTKCDF" + CAS_VIEWER="$CAS_LDPATH -lTKOpenGl -lTKV3d -lTKService" -# CAS_MODELER="-L$CASROOT/$casdir/lib -lTKG2d -lTKG3d -lTKGeomBase -lTKBRep -lTKGeomAlgo -lTKTopAlgo -lTKPrim -lTKBool -lTKHLR -lTKFillet -lTKFeat -lTKOffset" CAS_MODELER="$CAS_LDPATH -lTKG2d -lTKG3d -lTKGeomBase -lTKBRep -lTKGeomAlgo -lTKTopAlgo -lTKPrim -lTKBool -lTKHLR -lTKFillet -lTKOffset" -dnl CAS_DATAEXCHANGE="-L$CASROOT/$casdir/lib -lTKXSBase -lTKIGES -lTKSTEP -lTKShHealing -lTKShHealingStd -lTKSTL -lTKVRML " - CAS_DATAEXCHANGE="$CAS_LDPATH -lTKXSBase -lTKIGES -lTKSTEP -lTKShHealing -lTKShHealingStd" + + # E.A. compatibility version 4 and 5.x + CAS_DATAEXCHANGE="$CAS_LDPATH -lTKXSBase -lTKIGES -lTKSTEP -lTKShHealing" + if test $OCC_VERSION_MAJOR -lt 5 ; then + CAS_DATAEXCHANGE="$CAS_DATAEXCHANGE -lTKShHealingStd" + fi + + CAS_LDFLAGS="$CAS_KERNEL $CAS_OCAF $CAS_VIEWER $CAS_MODELER $CAS_DATAEXCHANGE" - - + fi AC_LANG_RESTORE diff --git a/salome_adm/unix/config_files/check_lam.m4 b/salome_adm/unix/config_files/check_lam.m4 index ab62ab44a..9a303a054 100644 --- a/salome_adm/unix/config_files/check_lam.m4 +++ b/salome_adm/unix/config_files/check_lam.m4 @@ -62,6 +62,7 @@ if test "$WITHLAM" = yes; then fi if test "$WITHLAM" = "yes";then + WITHMPI="yes" mpi_ok=yes MPI_LIBS="$MPI_LIBS -lmpi -llam" else diff --git a/salome_adm/unix/config_files/check_mpi.m4 b/salome_adm/unix/config_files/check_mpi.m4 index 6c68d7053..d746ac055 100644 --- a/salome_adm/unix/config_files/check_mpi.m4 +++ b/salome_adm/unix/config_files/check_mpi.m4 @@ -97,6 +97,7 @@ if test "$WITHMPI2" = "yes";then CORBA_IDLPYFLAGS="-DHAVE_MPI2 $CORBA_IDLPYFLAGS" fi +AC_SUBST(WITHMPI) AC_SUBST(MPI_INCLUDES) AC_SUBST(MPI_LIBS) AC_SUBST(mpi_ok) diff --git a/salome_adm/unix/config_files/check_mpich.m4 b/salome_adm/unix/config_files/check_mpich.m4 index 5b34bcd80..de0e6d50a 100644 --- a/salome_adm/unix/config_files/check_mpich.m4 +++ b/salome_adm/unix/config_files/check_mpich.m4 @@ -52,16 +52,15 @@ if test "$WITHMPICH" = yes; then if test "$WITHMPICH" = "yes";then LDFLAGS_old="$LDFLAGS" LDFLAGS="$MPI_LIBS $LDFLAGS" - AC_CHECK_LIB(mpich,MPI_Init, - AC_CHECK_LIB(pmpich, PMPI_Init,WITHMPICH="yes",WITHMPICH="no"), - WITHMPICH="no") + AC_CHECK_LIB(mpich,MPI_Init,WITHMPICH="yes",WITHMPICH="no") AC_CHECK_LIB(mpich,MPI_Publish_name,WITHMPI2="yes",WITHMPI2="no") LDFLAGS="$LDFLAGS_old" fi if test "$WITHMPICH" = "yes";then + WITHMPI="yes" mpi_ok=yes - MPI_LIBS="$MPI_LIBS -lpmpich -lmpich" + MPI_LIBS="$MPI_LIBS -lmpich" else mpi_ok=no fi diff --git a/salome_adm/unix/config_files/check_pthreads.m4 b/salome_adm/unix/config_files/check_pthreads.m4 index 0608c4a40..983bfc200 100644 --- a/salome_adm/unix/config_files/check_pthreads.m4 +++ b/salome_adm/unix/config_files/check_pthreads.m4 @@ -30,22 +30,21 @@ dnl@id $Id$ dnl ---------------------------------------------------------------- dnl CHECK_PTHREADS AC_DEFUN(CHECK_PTHREADS,[ -AC_REQUIRE([AC_CANONICAL_SYSTEM])dnl -AC_CHECK_HEADER(pthread.h,AC_DEFINE(HAVE_PTHREAD_H)) -AC_CHECK_LIB(posix4,nanosleep, LIBS_PTHREADS="-lposix4",LIBS_PTHREADS="") -AC_CHECK_LIB(pthread,pthread_mutex_lock, - LIBS_PTHREADS="-lpthread $LIBS_PTHREADS") -AC_MSG_CHECKING([parameters for using pthreads]) -case $build_os in - freebsd*) - CFLAGS_PTHREADS="-pthread" - CXXFLAGS_PTHREADS="-pthread" - ;; - *) - ;; -esac -AC_MSG_RESULT(["flags: $CFLAGS_PTHREADS\;libs: $LIBS_PTHREADS"]) -threads_ok=yes +AC_CXX_OPTION(-pthread,CPPFLAGS,flag=yes,flag=no) + +if test $flag = no; then + AC_REQUIRE([AC_CANONICAL_SYSTEM])dnl + AC_CHECK_HEADER(pthread.h,AC_DEFINE(HAVE_PTHREAD_H)) + AC_CHECK_LIB(posix4,nanosleep, LIBS_PTHREADS="-lposix4",LIBS_PTHREADS="") + AC_CHECK_LIB(pthread,pthread_mutex_lock, + LIBS_PTHREADS="-lpthread $LIBS_PTHREADS",LIBS_PTHREADS="") +fi + +if test $flag = no && x$LIBS_PTHREADS = x; then + threads_ok=no +else + threads_ok=yes +fi ])dnl dnl dnl diff --git a/salome_adm/unix/config_files/check_sip.m4 b/salome_adm/unix/config_files/check_sip.m4 index feecb0dde..48a025918 100644 --- a/salome_adm/unix/config_files/check_sip.m4 +++ b/salome_adm/unix/config_files/check_sip.m4 @@ -28,10 +28,17 @@ else sip_vers=new ;; 3.5*) sip_vers=new ;; + 3.6*) + sip_vers=new ;; + 3.7*) + sip_vers=new ;; + 3.8*) + sip_vers=new ;; + 3.9*) + sip_vers=new ;; *) sip_vers=no ;; esac - sip_ok=no if test "x$sip_vers" = "xold" @@ -44,11 +51,11 @@ else if test "x$sip_vers" = "xnew" then - if test -d ${SIPDIR}/include ; then - sip_ok=yes + sip_ok=yes + if test -d ${SIPDIR}/include/python${PYTHON_VERSION} ; then SIP_ROOT="$SIPDIR" - SIP_INCLUDES="${PYTHON_INCLUDES} -I${SIPDIR}/include" - SIP_LIBS="-L${SIPDIR}/lib -lsip" + SIP_INCLUDES="${PYTHON_INCLUDES} -I${SIPDIR}/include/python${PYTHON_VERSION}" + SIP_LIBS="-L${SIPDIR}/lib/python${PYTHON_VERSION}/site-packages -lsip" else sip_ok=yes SIP_ROOT="$SIPDIR" diff --git a/salome_adm/unix/config_files/check_vtk.m4 b/salome_adm/unix/config_files/check_vtk.m4 index 1b1a8d1a1..4b4b1454f 100644 --- a/salome_adm/unix/config_files/check_vtk.m4 +++ b/salome_adm/unix/config_files/check_vtk.m4 @@ -48,10 +48,16 @@ then AC_MSG_WARN(vtk needs OpenGL correct configuration, check configure output) fi +if test "x$x_libraries" != "x" +then + LXLIB="-L$x_libraries" +else + LXLIB="" +fi LOCAL_INCLUDES="$OGL_INCLUDES" -LOCAL_LIBS="-lvtkCommon -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkIO -lvtkRendering -lvtkHybrid $OGL_LIBS -L$x_libraries -lX11 -lXt" -TRY_LINK_LIBS="-lvtkCommon $OGL_LIBS -L$x_libraries -lX11 -lXt" +LOCAL_LIBS="-lvtkCommon -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkIO -lvtkRendering -lvtkHybrid $OGL_LIBS $LXLIB -lX11 -lXt" +TRY_LINK_LIBS="-lvtkCommon $OGL_LIBS $LXLIB -lX11 -lXt" if test -z $VTKHOME then @@ -64,7 +70,7 @@ fi dnl vtk headers CPPFLAGS_old="$CPPFLAGS" -CPPFLAGS="$CPPFLAGS $LOCAL_INCLUDES -Wno-deprecated" +CPPFLAGS="$CPPFLAGS $LOCAL_INCLUDES" AC_CHECK_HEADER(vtkPlane.h,vtk_ok="yes",vtk_ok="no") @@ -82,7 +88,7 @@ AC_CHECK_HEADER(vtkPlane.h,vtk_ok="yes",vtk_ok="no") # LIBS="$LIBS $TRY_LINK_LIBS" LIBS="$LIBS $LOCAL_LIBS" CPPFLAGS_old="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $VTK_INCLUDES -Wno-deprecated" + CPPFLAGS="$CPPFLAGS $VTK_INCLUDES" dnl VTKPY_MODULES="$VTKHOME/python" diff --git a/salome_adm/unix/config_files/production.m4 b/salome_adm/unix/config_files/production.m4 index b115b8aab..1cebe979e 100644 --- a/salome_adm/unix/config_files/production.m4 +++ b/salome_adm/unix/config_files/production.m4 @@ -53,16 +53,25 @@ no) enable_production=no ;; esac], enable_production=AC_ENABLE_PRODUCTION_DEFAULT)dnl -CXXFLAGS="$CXXFLAGS -Wno-deprecated -Wparentheses -Wreturn-type -Wmissing-declarations -Wunused " +# portage alpha/OSF +# CXXFLAGS="$CXXFLAGS -Wno-deprecated -Wparentheses -Wreturn-type -Wmissing-declarations -Wunused " +echo $CXX +AC_CXX_OPTION(-Wparentheses,CXXFLAGS) +AC_CXX_OPTION(-Wreturn-type,CXXFLAGS) +AC_CXX_OPTION(-Wmissing-declarations,CXXFLAGS) +AC_CXX_OPTION(-Wunused,CXXFLAGS) -CXXVERSION=`$CXX --version` -if test "X$CXXVERSION" != "X2.95.3"; then - CXXFLAGS="${CXXFLAGS} -fmessage-length=0 " -fi +# supprimer car ne marche qu'avec compilo gnu +# CXXVERSION=`$CXX --version` +# if test "X$CXXVERSION" != "X2.95.3"; then +# CXXFLAGS="${CXXFLAGS} -fmessage-length=0 " +# fi if test "X$enable_production" = "Xyes"; then CFLAGS="$CFLAGS -O" - CXXFLAGS="$CXXFLAGS -O -Wuninitialized " +# CXXFLAGS="$CXXFLAGS -O -Wuninitialized " + AC_CXX_OPTION(-Wuninitialized,CXXFLAGS) + CXXFLAGS="$CXXFLAGS -O " fi ]) diff --git a/salome_adm/unix/config_files/python.m4 b/salome_adm/unix/config_files/python.m4 index b86c21d35..b99b9d138 100644 --- a/salome_adm/unix/config_files/python.m4 +++ b/salome_adm/unix/config_files/python.m4 @@ -126,8 +126,8 @@ fi]) AC_MSG_CHECKING([if we need libdb]) PY_NEEDOPENDB=`nm $PYTHON_LIBA | grep dbopen | grep U` if test "x$PY_NEEDOPENDB" != "x"; then - PYTHON_LIBS="$PYTHON_LIBS -ldb" AC_MSG_RESULT(yes) + AC_CHECK_LIB(db,dbopen,PYTHON_LIBS="$PYTHON_LIBS -ldb",db_ok=no) else AC_MSG_RESULT(no) fi @@ -135,8 +135,8 @@ fi]) AC_MSG_CHECKING([if we need libdl]) PY_NEEDOPENDL=`nm $PYTHON_LIBA | grep dlopen | grep U` if test "x$PY_NEEDOPENDL" != "x"; then - PYTHON_LIBS="$PYTHON_LIBS -ldl" AC_MSG_RESULT(yes) + AC_CHECK_LIB(dl,dlopen,PYTHON_LIBS="$PYTHON_LIBS -ldl",dl_ok=no) else AC_MSG_RESULT(no) fi @@ -144,8 +144,8 @@ fi]) AC_MSG_CHECKING([if we need libutil]) PY_NEEDOPENPTY=`nm $PYTHON_LIBA | grep openpty | grep U` if test "x$PY_NEEDOPENPTY" != "x"; then - PYTHON_LIBS="$PYTHON_LIBS -lutil" AC_MSG_RESULT(yes) + AC_CHECK_LIB(util,openpty,PYTHON_LIBS="$PYTHON_LIBS -lutil",openpty_ok=no) else AC_MSG_RESULT(no) fi @@ -153,8 +153,8 @@ fi]) AC_MSG_CHECKING([if we need tcltk]) PY_NEEDTCLTK=`nm $PYTHON_LIBA | grep Tcl_Init | grep U` if test "x$PY_NEEDTCLTK" != "x"; then - PYTHON_LIBS="$PYTHON_LIBS -ltcl -ltk" AC_MSG_RESULT(yes) + AC_CHECK_LIB(tcl,Tcl_Init,PYTHON_LIBS="$PYTHON_LIBS -ltcl -ltk",tclinit_ok=no) else AC_MSG_RESULT(no) fi diff --git a/salome_adm/unix/make_commence.in b/salome_adm/unix/make_commence.in index e42171246..cabebbd71 100644 --- a/salome_adm/unix/make_commence.in +++ b/salome_adm/unix/make_commence.in @@ -2,7 +2,8 @@ inc_builddir=$(top_builddir)/include/salome @SET_MAKE@ -SHELL=/bin/sh +# Modifcation B. Secher portage sur osf +SHELL=@SHELL@ # header missing @@ -10,11 +11,12 @@ HAVE_SSTREAM=@HAVE_SSTREAM@ LIBS=@LIBS@ -LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib/salome -Xlinker -rpath-link -Xlinker -L$(top_builddir)/lib/salome +# LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib/salome -Xlinker -rpath-link -Xlinker -L$(top_builddir)/lib/salome +LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib/salome # add libstdc++ to link c++ library with libtool ! -LDFLAGS+= -lstdc++ +LDFLAGS+= @STDLIB@ -CP=@CP@ +#CP=@CP@ # CPP @@ -46,9 +48,9 @@ OPENPBS_LIBS = @OPENPBS_LIBS@ # JAVA -JAVA_INCLUDES = @JAVA_INCLUDES@ -JAVA_LIBS = @JAVA_LIBS@ -JAVA_LDPATH = @JAVA_LDPATH@ +#JAVA_INCLUDES = @JAVA_INCLUDES@ +#JAVA_LIBS = @JAVA_LIBS@ +#JAVA_LDPATH = @JAVA_LDPATH@ # PYTHON @@ -184,8 +186,8 @@ LIBS+=$(CORBA_LIBS) DOXYGEN = @DOXYGEN@ ## Shared libraries -LT_STATIC_EXEC=@LT_STATIC_EXEC@ -DYNAMIC_DIRS=@DYNAMIC_DIRS@ +#LT_STATIC_EXEC=@LT_STATIC_EXEC@ +#DYNAMIC_DIRS=@DYNAMIC_DIRS@ LT_LIB=libtool LT=$(top_builddir)/libtool LT_COMPILE=$(LT) --mode=compile $(CC) diff --git a/src/Batch/Batch_APIInternalFailureException.cxx b/src/Batch/Batch_APIInternalFailureException.cxx index 42e52aa9e..ac4f6491b 100644 --- a/src/Batch/Batch_APIInternalFailureException.cxx +++ b/src/Batch/Batch_APIInternalFailureException.cxx @@ -9,6 +9,7 @@ */ #include "Batch_APIInternalFailureException.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_APIInternalFailureException.hxx b/src/Batch/Batch_APIInternalFailureException.hxx index 14bf01f4f..946851c59 100644 --- a/src/Batch/Batch_APIInternalFailureException.hxx +++ b/src/Batch/Batch_APIInternalFailureException.hxx @@ -21,7 +21,7 @@ namespace Batch { { public: // Constructeur - APIInternalFailureException(string ch = "undefined") : GenericException("APIInternalFailureException", ch) {} + APIInternalFailureException(std::string ch = "undefined") : GenericException("APIInternalFailureException", ch) {} }; } diff --git a/src/Batch/Batch_BatchManager.cxx b/src/Batch/Batch_BatchManager.cxx index e84d3bdaf..56cae6c30 100644 --- a/src/Batch/Batch_BatchManager.cxx +++ b/src/Batch/Batch_BatchManager.cxx @@ -18,6 +18,7 @@ #include "Batch_InvalidArgumentException.hxx" #include "Batch_FactBatchManager.hxx" #include "Batch_BatchManager.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_BatchManager.hxx b/src/Batch/Batch_BatchManager.hxx index 47820ef0b..c132a575a 100644 --- a/src/Batch/Batch_BatchManager.hxx +++ b/src/Batch/Batch_BatchManager.hxx @@ -10,7 +10,6 @@ #ifndef _BATCHMANAGER_H_ #define _BATCHMANAGER_H_ -using namespace std; #include #include #include "Batch_Job.hxx" @@ -29,13 +28,13 @@ namespace Batch { { public: // Constructeur et destructeur - //BatchManager(string host="localhost") throw(InvalidArgumentException); // connexion a la machine host + //BatchManager(std::string host="localhost") throw(InvalidArgumentException); // connexion a la machine host BatchManager(const FactBatchManager * parent, const char * host="localhost") throw(InvalidArgumentException); // connexion a la machine host virtual ~BatchManager(); - virtual string __repr__() const; + virtual std::string __repr__() const; // Recupere le l'identifiant d'un job deja soumis au BatchManager - //virtual const JobId getJobIdByReference(const string & ref); + //virtual const JobId getJobIdByReference(const std::string & ref); virtual const JobId getJobIdByReference(const char * ref); // Methodes pour le controle des jobs : virtuelles pures @@ -49,8 +48,8 @@ namespace Batch { virtual JobInfo queryJob(const JobId & jobid) = 0; // renvoie l'etat du job protected: - string _hostname; // serveur ou tourne le BatchManager - map< const string, const JobId * > jobid_map; // table des jobs deja soumis + std::string _hostname; // serveur ou tourne le BatchManager + std::map< const std::string, const JobId * > jobid_map; // table des jobs deja soumis const FactBatchManager * _parent; private: diff --git a/src/Batch/Batch_BatchManagerCatalog.cxx b/src/Batch/Batch_BatchManagerCatalog.cxx index 437be93fb..6485411bc 100644 --- a/src/Batch/Batch_BatchManagerCatalog.cxx +++ b/src/Batch/Batch_BatchManagerCatalog.cxx @@ -12,6 +12,7 @@ #include #include "Batch_BatchManagerCatalog.hxx" #include "Batch_FactBatchManager.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_BatchManagerCatalog.hxx b/src/Batch/Batch_BatchManagerCatalog.hxx index cff458293..1857fa059 100644 --- a/src/Batch/Batch_BatchManagerCatalog.hxx +++ b/src/Batch/Batch_BatchManagerCatalog.hxx @@ -10,7 +10,6 @@ #ifndef _CATALOG_H_ #define _CATALOG_H_ -using namespace std; #include #include #include @@ -31,11 +30,11 @@ namespace Batch { static void addFactBatchManager(const char * type, FactBatchManager * pFBM); virtual FactBatchManager * operator() (const char * type) const; - virtual map * dict() const; - virtual string __repr__() const; + virtual std::map * dict() const; + virtual std::string __repr__() const; protected: - static map * _p_catalog; + static std::map * _p_catalog; static pthread_mutex_t _mutex; private: diff --git a/src/Batch/Batch_BatchManager_PBS.cxx b/src/Batch/Batch_BatchManager_PBS.cxx index 45fceedde..a45934629 100644 --- a/src/Batch/Batch_BatchManager_PBS.cxx +++ b/src/Batch/Batch_BatchManager_PBS.cxx @@ -17,6 +17,7 @@ extern "C" { #include //#include "MEDMEM_STRING.hxx" #include "Batch_BatchManager_PBS.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_BatchManager_PBS.hxx b/src/Batch/Batch_BatchManager_PBS.hxx index 53c7437cc..a8310ecba 100644 --- a/src/Batch/Batch_BatchManager_PBS.hxx +++ b/src/Batch/Batch_BatchManager_PBS.hxx @@ -36,12 +36,12 @@ namespace Batch { public: // Constructeur et destructeur //BatchManager_PBS() throw(InvalidArgumentException,ConnexionFailureException); // connexion au serveur par defaut - //BatchManager_PBS(string host) throw(InvalidArgumentException,ConnexionFailureException); // connexion a la machine host + //BatchManager_PBS(std::string host) throw(InvalidArgumentException,ConnexionFailureException); // connexion a la machine host BatchManager_PBS(const FactBatchManager * parent, const char * host="localhost") throw(InvalidArgumentException,ConnexionFailureException); // connexion a la machine host virtual ~BatchManager_PBS(); // Recupere le nom du serveur par defaut - // static string BatchManager_PBS::getDefaultServer(); + // static std::string BatchManager_PBS::getDefaultServer(); // Methodes pour le controle des jobs virtual const JobId submitJob(const Job & job); // soumet un job au gestionnaire @@ -65,7 +65,7 @@ namespace Batch { #ifdef SWIG public: // Recupere le l'identifiant d'un job deja soumis au BatchManager - //virtual const JobId getJobIdByReference(const string & ref) { return BatchManager::getJobIdByReference(ref); } + //virtual const JobId getJobIdByReference(const std::string & ref) { return BatchManager::getJobIdByReference(ref); } virtual const JobId getJobIdByReference(const char * ref) { return BatchManager::getJobIdByReference(ref); } #endif diff --git a/src/Batch/Batch_BoolType.cxx b/src/Batch/Batch_BoolType.cxx index b70696341..6e28f197b 100644 --- a/src/Batch/Batch_BoolType.cxx +++ b/src/Batch/Batch_BoolType.cxx @@ -9,6 +9,7 @@ #include #include "Batch_BoolType.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_BoolType.hxx b/src/Batch/Batch_BoolType.hxx index 1bb58d16d..47c61d57b 100644 --- a/src/Batch/Batch_BoolType.hxx +++ b/src/Batch/Batch_BoolType.hxx @@ -10,7 +10,6 @@ #ifndef _BOOLTYPE_H_ #define _BOOLTYPE_H_ -using namespace std; #include #include "Batch_GenericType.hxx" @@ -23,7 +22,7 @@ namespace Batch { BoolType(const bool b=false) : _data(b) {} // Conversion en chaine - virtual string affiche() const; + virtual std::string affiche() const; // Operateur d'affectation virtual BoolType & operator =(bool); diff --git a/src/Batch/Batch_CharType.cxx b/src/Batch/Batch_CharType.cxx index 66197f84c..52f64146d 100644 --- a/src/Batch/Batch_CharType.cxx +++ b/src/Batch/Batch_CharType.cxx @@ -9,6 +9,7 @@ #include #include "Batch_CharType.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_CharType.hxx b/src/Batch/Batch_CharType.hxx index 0aae9f45b..ac96bc950 100644 --- a/src/Batch/Batch_CharType.hxx +++ b/src/Batch/Batch_CharType.hxx @@ -10,7 +10,6 @@ #ifndef _CHARTYPE_H_ #define _CHARTYPE_H_ -using namespace std; #include #include "Batch_GenericType.hxx" @@ -23,7 +22,7 @@ namespace Batch { CharType(const char c=0) : _data(c) {} // Conversion en chaine - virtual string affiche() const; + virtual std::string affiche() const; // Operateur d'affectation virtual CharType & operator =(char); diff --git a/src/Batch/Batch_ConnexionFailureException.cxx b/src/Batch/Batch_ConnexionFailureException.cxx index df1096fd9..d78f842c1 100644 --- a/src/Batch/Batch_ConnexionFailureException.cxx +++ b/src/Batch/Batch_ConnexionFailureException.cxx @@ -9,6 +9,7 @@ */ #include "Batch_ConnexionFailureException.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_ConnexionFailureException.hxx b/src/Batch/Batch_ConnexionFailureException.hxx index 22d9584b2..123241876 100644 --- a/src/Batch/Batch_ConnexionFailureException.hxx +++ b/src/Batch/Batch_ConnexionFailureException.hxx @@ -20,7 +20,7 @@ namespace Batch { { public: // Constructeur - ConnexionFailureException(string ch = "undefined") : GenericException("ConnexionFailureException", ch) {} + ConnexionFailureException(std::string ch = "undefined") : GenericException("ConnexionFailureException", ch) {} }; diff --git a/src/Batch/Batch_Couple.cxx b/src/Batch/Batch_Couple.cxx index 8a08d7040..c87ce4fc1 100644 --- a/src/Batch/Batch_Couple.cxx +++ b/src/Batch/Batch_Couple.cxx @@ -9,6 +9,7 @@ */ #include "Batch_Couple.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_Couple.hxx b/src/Batch/Batch_Couple.hxx index 4efe11762..cd310b4c6 100644 --- a/src/Batch/Batch_Couple.hxx +++ b/src/Batch/Batch_Couple.hxx @@ -11,7 +11,6 @@ #ifndef _COUPLE_H_ #define _COUPLE_H_ -using namespace std; #include namespace Batch { @@ -20,27 +19,27 @@ namespace Batch { { public: // Constructeur standard - Couple(const string & local="", const string & remote="") : _local(local), _remote(remote) {} + Couple(const std::string & local="", const std::string & remote="") : _local(local), _remote(remote) {} // Constructeur par recopie Couple(const Couple & C) : _local(C._local), _remote(C._remote) {} // Operateur pour l'affichage sur un stream - friend ostream & operator << (ostream & os, const Couple & cp); + friend std::ostream & operator << (std::ostream & os, const Couple & cp); // Operateur d'affectation virtual Couple & operator =(const Couple &); // Conversion en chaine - virtual string str() const; + virtual std::string str() const; // Accesseurs - virtual string getLocal() const { return _local; } - virtual string getRemote() const { return _remote; } + virtual std::string getLocal() const { return _local; } + virtual std::string getRemote() const { return _remote; } protected: - string _local; // chemin d'acces au fichier local - string _remote; // chemin d'acees au fichier distant + std::string _local; // chemin d'acces au fichier local + std::string _remote; // chemin d'acees au fichier distant private: diff --git a/src/Batch/Batch_CoupleType.cxx b/src/Batch/Batch_CoupleType.cxx index 1de0b21f0..2cf112a26 100644 --- a/src/Batch/Batch_CoupleType.cxx +++ b/src/Batch/Batch_CoupleType.cxx @@ -9,6 +9,7 @@ */ #include "Batch_CoupleType.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_CoupleType.hxx b/src/Batch/Batch_CoupleType.hxx index a8913d575..9d3905be3 100644 --- a/src/Batch/Batch_CoupleType.hxx +++ b/src/Batch/Batch_CoupleType.hxx @@ -11,7 +11,6 @@ #ifndef _COUPLETYPE_H_ #define _COUPLETYPE_H_ -using namespace std; #include #include "Batch_GenericType.hxx" #include "Batch_Couple.hxx" @@ -25,8 +24,8 @@ namespace Batch { CoupleType(const Couple & C) : _data(C) {} // Conversion en chaine - virtual string affiche() const; - virtual operator string() const; + virtual std::string affiche() const; + virtual operator std::string() const; // Operateur d'affectation virtual CoupleType & operator =(const Couple & C); diff --git a/src/Batch/Batch_Date.cxx b/src/Batch/Batch_Date.cxx index 9ac52b12d..9c48d233d 100644 --- a/src/Batch/Batch_Date.cxx +++ b/src/Batch/Batch_Date.cxx @@ -11,6 +11,7 @@ #include #include #include "Batch_Date.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_Date.hxx b/src/Batch/Batch_Date.hxx index 0091850d1..cef80cc5a 100644 --- a/src/Batch/Batch_Date.hxx +++ b/src/Batch/Batch_Date.hxx @@ -11,7 +11,6 @@ #ifndef _DATE_H_ #define _DATE_H_ -using namespace std; #include namespace Batch { @@ -20,14 +19,14 @@ namespace Batch { { public: Date(const long l=0); - Date(const string s); + Date(const std::string s); virtual Date & operator =(long l); virtual Date & operator +(long l); virtual Date & operator -(long l); virtual Date & operator +=(long l); virtual Date & operator -=(long l); - virtual Date & operator =(const string & s); - virtual string str() const; + virtual Date & operator =(const std::string & s); + virtual std::string str() const; virtual long epoch() const; protected: diff --git a/src/Batch/Batch_DateType.cxx b/src/Batch/Batch_DateType.cxx index fac8830d6..4e08dd2a5 100644 --- a/src/Batch/Batch_DateType.cxx +++ b/src/Batch/Batch_DateType.cxx @@ -11,6 +11,7 @@ extern "C" { #include } #include "Batch_DateType.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_DateType.hxx b/src/Batch/Batch_DateType.hxx index 868272086..b94cdb2a8 100644 --- a/src/Batch/Batch_DateType.hxx +++ b/src/Batch/Batch_DateType.hxx @@ -11,7 +11,6 @@ #ifndef _DATETYPE_H_ #define _DATETYPE_H_ -using namespace std; #include #include "Batch_GenericType.hxx" #include "Batch_Date.hxx" @@ -25,7 +24,7 @@ namespace Batch { DateType(const Date & d) : _data(d) {}; // Conversion en chaine - virtual string affiche() const; + virtual std::string affiche() const; // Operateur d'affectation virtual DateType & operator =(const Date &); diff --git a/src/Batch/Batch_Environnement.cxx b/src/Batch/Batch_Environnement.cxx index d658d3855..24155decb 100644 --- a/src/Batch/Batch_Environnement.cxx +++ b/src/Batch/Batch_Environnement.cxx @@ -9,6 +9,7 @@ */ #include "Batch_Environnement.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_Environnement.hxx b/src/Batch/Batch_Environnement.hxx index cda22aeff..e136996f6 100644 --- a/src/Batch/Batch_Environnement.hxx +++ b/src/Batch/Batch_Environnement.hxx @@ -12,13 +12,12 @@ #define _ENVIRONNEMENT_H_ -using namespace std; #include #include namespace Batch { - typedef map < string, string > Environnement; + typedef std::map < std::string, std::string > Environnement; } diff --git a/src/Batch/Batch_FactBatchManager.cxx b/src/Batch/Batch_FactBatchManager.cxx index c8123cbfd..ba1d5e839 100644 --- a/src/Batch/Batch_FactBatchManager.cxx +++ b/src/Batch/Batch_FactBatchManager.cxx @@ -12,6 +12,7 @@ #include "Batch_BatchManagerCatalog.hxx" #include "Batch_FactBatchManager.hxx" #include "utilities.h" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_FactBatchManager.hxx b/src/Batch/Batch_FactBatchManager.hxx index 4e4282344..2a662d73c 100644 --- a/src/Batch/Batch_FactBatchManager.hxx +++ b/src/Batch/Batch_FactBatchManager.hxx @@ -10,7 +10,6 @@ #ifndef _FACTBATCHMANAGER_H_ #define _FACTBATCHMANAGER_H_ -using namespace std; #include #include @@ -22,15 +21,15 @@ namespace Batch { { public: // Constructeur et destructeur - FactBatchManager(const string & type); + FactBatchManager(const std::string & type); virtual ~FactBatchManager(); virtual BatchManager * operator() (const char * hostname) const = 0; - string getType() const; - string __repr__() const; + std::string getType() const; + std::string __repr__() const; protected: - string type; + std::string type; private: diff --git a/src/Batch/Batch_FactBatchManager_PBS.cxx b/src/Batch/Batch_FactBatchManager_PBS.cxx index 3a0e39763..d2ded29ca 100644 --- a/src/Batch/Batch_FactBatchManager_PBS.cxx +++ b/src/Batch/Batch_FactBatchManager_PBS.cxx @@ -11,6 +11,7 @@ #include "Batch_BatchManager_PBS.hxx" #include "Batch_FactBatchManager_PBS.hxx" #include "utilities.h" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_FactBatchManager_PBS.hxx b/src/Batch/Batch_FactBatchManager_PBS.hxx index 55d4bec90..fdf053c1b 100644 --- a/src/Batch/Batch_FactBatchManager_PBS.hxx +++ b/src/Batch/Batch_FactBatchManager_PBS.hxx @@ -10,9 +10,6 @@ #ifndef _FACTBATCHMANAGER_PBS_H_ #define _FACTBATCHMANAGER_PBS_H_ -using namespace std; -#include -#include #include "Batch_FactBatchManager.hxx" namespace Batch { diff --git a/src/Batch/Batch_GenericException.cxx b/src/Batch/Batch_GenericException.cxx index 6cf7a935f..e9f8ffb75 100644 --- a/src/Batch/Batch_GenericException.cxx +++ b/src/Batch/Batch_GenericException.cxx @@ -9,6 +9,7 @@ */ #include "Batch_GenericException.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_GenericException.hxx b/src/Batch/Batch_GenericException.hxx index 59ecd8413..dae5525d3 100644 --- a/src/Batch/Batch_GenericException.hxx +++ b/src/Batch/Batch_GenericException.hxx @@ -12,7 +12,6 @@ #define _GENERICEXCEPTION_H_ -using namespace std; #include namespace Batch { @@ -20,11 +19,11 @@ namespace Batch { class GenericException { public: - const string type; // la nature de l'exception - const string message; // la raison de l'exception + const std::string type; // la nature de l'exception + const std::string message; // la raison de l'exception // Constructeur - GenericException(const string tp = "GenericException", const string ch = "undefined") : type(tp), message(ch) {} + GenericException(const std::string tp = "GenericException", const std::string ch = "undefined") : type(tp), message(ch) {} }; } diff --git a/src/Batch/Batch_GenericType.cxx b/src/Batch/Batch_GenericType.cxx index 997222a73..dc00c838f 100644 --- a/src/Batch/Batch_GenericType.cxx +++ b/src/Batch/Batch_GenericType.cxx @@ -11,6 +11,7 @@ #include #include #include "Batch_GenericType.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_GenericType.hxx b/src/Batch/Batch_GenericType.hxx index 5a3dfe28e..9dea30601 100644 --- a/src/Batch/Batch_GenericType.hxx +++ b/src/Batch/Batch_GenericType.hxx @@ -11,7 +11,6 @@ #define _GENERICTYPE_H_ -using namespace std; #include #include @@ -25,10 +24,10 @@ namespace Batch { virtual ~GenericType() { _nb--; } // Operateur pour l'affichage sur un stream - friend ostream & operator << (ostream & os, const GenericType & obj); + friend std::ostream & operator << (std::ostream & os, const GenericType & obj); // Conversion en chaine - virtual string affiche() const; + virtual std::string affiche() const; // Clone duplique l'objet et en fabrique un nouveau a l'aide de new // qu'il faudra detruire ensuite manuellement diff --git a/src/Batch/Batch_IntType.cxx b/src/Batch/Batch_IntType.cxx index b5b1eb9cb..a9aa692ff 100644 --- a/src/Batch/Batch_IntType.cxx +++ b/src/Batch/Batch_IntType.cxx @@ -11,6 +11,7 @@ #include //#include "MEDMEM_STRING.hxx" #include "Batch_IntType.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_IntType.hxx b/src/Batch/Batch_IntType.hxx index 6d07fe50f..87dc862e7 100644 --- a/src/Batch/Batch_IntType.hxx +++ b/src/Batch/Batch_IntType.hxx @@ -10,7 +10,6 @@ #ifndef _INTTYPE_H_ #define _INTTYPE_H_ -using namespace std; #include #include "Batch_GenericType.hxx" @@ -23,7 +22,7 @@ namespace Batch { IntType(const int i=0) : _data(i) {} // Conversion en chaine - virtual string affiche() const; + virtual std::string affiche() const; // Operateur d'affectation virtual IntType & operator =(int); diff --git a/src/Batch/Batch_InvalidArgumentException.cxx b/src/Batch/Batch_InvalidArgumentException.cxx index fa077bcbb..b985a7f5e 100644 --- a/src/Batch/Batch_InvalidArgumentException.cxx +++ b/src/Batch/Batch_InvalidArgumentException.cxx @@ -9,6 +9,7 @@ */ #include "Batch_InvalidArgumentException.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_InvalidArgumentException.hxx b/src/Batch/Batch_InvalidArgumentException.hxx index 62a972bd4..9f83ba9d7 100644 --- a/src/Batch/Batch_InvalidArgumentException.hxx +++ b/src/Batch/Batch_InvalidArgumentException.hxx @@ -21,7 +21,7 @@ namespace Batch { { public: // Constructeur - InvalidArgumentException(string ch = "undefined") : GenericException("InvalidArgumentException", ch) {} + InvalidArgumentException(std::string ch = "undefined") : GenericException("InvalidArgumentException", ch) {} }; } diff --git a/src/Batch/Batch_InvalidKeyException.cxx b/src/Batch/Batch_InvalidKeyException.cxx index bec522ef9..c600c2304 100644 --- a/src/Batch/Batch_InvalidKeyException.cxx +++ b/src/Batch/Batch_InvalidKeyException.cxx @@ -9,6 +9,7 @@ */ #include "Batch_InvalidKeyException.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_InvalidKeyException.hxx b/src/Batch/Batch_InvalidKeyException.hxx index 8e0c45b9c..0fa548f1d 100644 --- a/src/Batch/Batch_InvalidKeyException.hxx +++ b/src/Batch/Batch_InvalidKeyException.hxx @@ -21,7 +21,7 @@ namespace Batch { { public: // Constructeur - InvalidKeyException(string ch = "undefined") : GenericException("InvalidKeyException", ch) {} + InvalidKeyException(std::string ch = "undefined") : GenericException("InvalidKeyException", ch) {} protected: diff --git a/src/Batch/Batch_Job.cxx b/src/Batch/Batch_Job.cxx index 6fa203ed5..77f8126e1 100644 --- a/src/Batch/Batch_Job.cxx +++ b/src/Batch/Batch_Job.cxx @@ -11,6 +11,7 @@ #include "Batch_Parametre.hxx" #include //#include "MEDMEM_STRING.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_Job.hxx b/src/Batch/Batch_Job.hxx index efd8a90ce..66fdf0494 100644 --- a/src/Batch/Batch_Job.hxx +++ b/src/Batch/Batch_Job.hxx @@ -27,7 +27,7 @@ namespace Batch { virtual ~Job() {} // Operateur pour l'affichage sur un stream - friend ostream & operator <<(ostream & os, const Job & job); + friend std::ostream & operator <<(std::ostream & os, const Job & job); // Accesseurs Parametre getParametre() const; @@ -39,8 +39,8 @@ namespace Batch { // Methodes pour l'interfacage avec Python (SWIG) // TODO : supprimer ces methodes et transferer leur definitions dans SWIG - string __str__() const; // SWIG : affichage en Python - string __repr__() const { return __str__(); }; // SWIG : affichage en Python + std::string __str__() const; // SWIG : affichage en Python + std::string __repr__() const { return __str__(); }; // SWIG : affichage en Python protected: Parametre _param; // table des parametres batch du job diff --git a/src/Batch/Batch_JobId.cxx b/src/Batch/Batch_JobId.cxx index f642b4ce2..370fe4476 100644 --- a/src/Batch/Batch_JobId.cxx +++ b/src/Batch/Batch_JobId.cxx @@ -11,6 +11,7 @@ #include "Batch_BatchManager.hxx" #include //#include "MEDMEM_STRING.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_JobId.hxx b/src/Batch/Batch_JobId.hxx index d2811bc6d..be14e7f9e 100644 --- a/src/Batch/Batch_JobId.hxx +++ b/src/Batch/Batch_JobId.hxx @@ -28,7 +28,7 @@ namespace Batch { virtual ~JobId(); // Constructeur avec le pointeur sur le BatchManager associe et avec une reference - JobId(BatchManager *, string ref); + JobId(BatchManager *, std::string ref); // Operateur d'affectation entre objets virtual JobId & operator =(const JobId &); @@ -37,7 +37,7 @@ namespace Batch { JobId(const JobId &); // Accesseur pour la reference interne - virtual string getReference() const; + virtual std::string getReference() const; // Methodes pour le controle du job virtual void deleteJob() const; // retire un job du gestionnaire @@ -52,12 +52,12 @@ namespace Batch { // Methodes pour l'interfacage avec Python (SWIG) // TODO : supprimer ces methodes et transferer leur definitions dans SWIG - string __str__() const; // SWIG : affichage en Python - string __repr__() const { return __str__(); }; // SWIG : affichage en Python + std::string __str__() const; // SWIG : affichage en Python + std::string __repr__() const { return __str__(); }; // SWIG : affichage en Python protected: BatchManager * _p_batchmanager; // pointeur sur le BatchManager qui controle le job - string _reference; // reference du job au sein du BatchManager + std::string _reference; // reference du job au sein du BatchManager private: diff --git a/src/Batch/Batch_JobInfo.cxx b/src/Batch/Batch_JobInfo.cxx index 3192f21d5..87f814322 100644 --- a/src/Batch/Batch_JobInfo.cxx +++ b/src/Batch/Batch_JobInfo.cxx @@ -13,6 +13,7 @@ #include //#include "MEDMEM_STRING.hxx" #include "Batch_JobInfo.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_JobInfo.hxx b/src/Batch/Batch_JobInfo.hxx index 093d8e3a9..7cdca6535 100644 --- a/src/Batch/Batch_JobInfo.hxx +++ b/src/Batch/Batch_JobInfo.hxx @@ -11,7 +11,6 @@ #ifndef _JOBINFO_H_ #define _JOBINFO_H_ -using namespace std; #include #include #include "Batch_Parametre.hxx" @@ -30,7 +29,7 @@ namespace Batch { JobInfo(const JobInfo & jinfo) : _param(jinfo._param), _env(jinfo._env) {}; // Operateur pour l'affichage sur un stream - friend ostream & operator <<(ostream & os, const JobInfo & ji); + friend std::ostream & operator <<(std::ostream & os, const JobInfo & ji); // Accesseurs virtual Parametre getParametre() const; @@ -38,8 +37,8 @@ namespace Batch { // Methodes pour l'interfacage avec Python (SWIG) // TODO : supprimer ces methodes et transferer leur definitions dans SWIG - string __str__() const; // SWIG : affichage en Python - string __repr__() const { return __str__(); }; // SWIG : affichage en Python + std::string __str__() const; // SWIG : affichage en Python + std::string __repr__() const { return __str__(); }; // SWIG : affichage en Python protected: Parametre _param; // parametres du job diff --git a/src/Batch/Batch_JobInfo_PBS.cxx b/src/Batch/Batch_JobInfo_PBS.cxx index a079b9249..dce6749f7 100644 --- a/src/Batch/Batch_JobInfo_PBS.cxx +++ b/src/Batch/Batch_JobInfo_PBS.cxx @@ -15,6 +15,7 @@ #include "Batch_Environnement.hxx" #include "Batch_RunTimeException.hxx" #include "Batch_JobInfo_PBS.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_JobInfo_PBS.hxx b/src/Batch/Batch_JobInfo_PBS.hxx index 2429b9832..4ae535c96 100644 --- a/src/Batch/Batch_JobInfo_PBS.hxx +++ b/src/Batch/Batch_JobInfo_PBS.hxx @@ -35,14 +35,14 @@ namespace Batch { // Methodes pour l'interfacage avec Python (SWIG) // TODO : supprimer ces methodes et transferer leur definitions dans SWIG - string __str__() const; // SWIG : affichage en Python - string __repr__() const { return __str__(); }; // SWIG : affichage en Python + std::string __str__() const; // SWIG : affichage en Python + std::string __repr__() const { return __str__(); }; // SWIG : affichage en Python protected: private: // Convertit une date HH:MM:SS en secondes - long HMStoLong(const string &); + long HMStoLong(const std::string &); }; diff --git a/src/Batch/Batch_Job_PBS.cxx b/src/Batch/Batch_Job_PBS.cxx index 78450133e..b884d7fa0 100644 --- a/src/Batch/Batch_Job_PBS.cxx +++ b/src/Batch/Batch_Job_PBS.cxx @@ -12,6 +12,7 @@ #include #include #include "Batch_Job_PBS.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_ListIsFullException.cxx b/src/Batch/Batch_ListIsFullException.cxx index aba5d44ab..3d5f3be98 100644 --- a/src/Batch/Batch_ListIsFullException.cxx +++ b/src/Batch/Batch_ListIsFullException.cxx @@ -8,6 +8,7 @@ */ #include "Batch_ListIsFullException.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_ListIsFullException.hxx b/src/Batch/Batch_ListIsFullException.hxx index c9807b132..1451d9d03 100644 --- a/src/Batch/Batch_ListIsFullException.hxx +++ b/src/Batch/Batch_ListIsFullException.hxx @@ -18,7 +18,7 @@ namespace Batch { { public: // Constructeur - ListIsFullException(string ch = "undefined") : GenericException("ListIsFullException", ch) {} + ListIsFullException(std::string ch = "undefined") : GenericException("ListIsFullException", ch) {} }; } diff --git a/src/Batch/Batch_LongType.cxx b/src/Batch/Batch_LongType.cxx index 2bd92c6c0..6a7c10038 100644 --- a/src/Batch/Batch_LongType.cxx +++ b/src/Batch/Batch_LongType.cxx @@ -11,6 +11,7 @@ #include //#include "MEDMEM_STRING.hxx" #include "Batch_LongType.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_LongType.hxx b/src/Batch/Batch_LongType.hxx index bf82d2ed3..62873c911 100644 --- a/src/Batch/Batch_LongType.hxx +++ b/src/Batch/Batch_LongType.hxx @@ -10,7 +10,6 @@ #ifndef _LONGTYPE_H_ #define _LONGTYPE_H_ -using namespace std; #include #include "Batch_GenericType.hxx" @@ -23,7 +22,7 @@ namespace Batch { LongType(const long l=0L) : _data(l) {} // Conversion en chaine - virtual string affiche() const; + virtual std::string affiche() const; // Operateur d'affectation virtual LongType & operator =(long); diff --git a/src/Batch/Batch_MapKey.cxx b/src/Batch/Batch_MapKey.cxx index 170bd00cf..0fe844c8f 100644 --- a/src/Batch/Batch_MapKey.cxx +++ b/src/Batch/Batch_MapKey.cxx @@ -10,6 +10,7 @@ #include #include "Batch_MapKey.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_MapKey.hxx b/src/Batch/Batch_MapKey.hxx index caee3633f..2e7629927 100644 --- a/src/Batch/Batch_MapKey.hxx +++ b/src/Batch/Batch_MapKey.hxx @@ -12,31 +12,30 @@ #define _MAPKEY_H_ -using namespace std; #include namespace Batch { // une classe privee pour les differents types // ces types ne peuvent pas etre redefinis - class MapKey : public string + class MapKey : public std::string { private: friend class Parametre; // seule la classe Parametre peut creer des MapKey - MapKey() : string() {} - MapKey(const MapKey & mk, size_type pos, size_type npos) : string(mk, pos, npos) {} - MapKey(const char * s, size_type n) : string(s, n) {} - MapKey(const char * s) : string(s) {} - MapKey(size_type n, char c) : string(n, c) {} + MapKey() : std::string() {} + MapKey(const MapKey & mk, size_type pos, size_type npos) : std::string(mk, pos, npos) {} + MapKey(const char * s, size_type n) : std::string(s, n) {} + MapKey(const char * s) : std::string(s) {} + MapKey(size_type n, char c) : std::string(n, c) {} #ifdef __STL_MEMBER_TEMPLATES template - MapKey(InputIterator __begin, InputIterator __end) : string(__begin, __end) {} + MapKey(InputIterator __begin, InputIterator __end) : std::string(__begin, __end) {} #else - MapKey(const_iterator __begin, const_iterator __end) : string(__begin, __end) {} + MapKey(const_iterator __begin, const_iterator __end) : std::string(__begin, __end) {} #endif public: - MapKey(const MapKey & mk) : string(mk) {} + MapKey(const MapKey & mk) : std::string(mk) {} }; diff --git a/src/Batch/Batch_NotYetImplementedException.hxx b/src/Batch/Batch_NotYetImplementedException.hxx index 753290d81..2f64c06c4 100644 --- a/src/Batch/Batch_NotYetImplementedException.hxx +++ b/src/Batch/Batch_NotYetImplementedException.hxx @@ -13,6 +13,7 @@ #include "Batch_GenericException.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_Parametre.cxx b/src/Batch/Batch_Parametre.cxx index fb8605c1b..47547061f 100644 --- a/src/Batch/Batch_Parametre.cxx +++ b/src/Batch/Batch_Parametre.cxx @@ -11,6 +11,7 @@ #include "Batch_Versatile.hxx" #include "Batch_InvalidKeyException.hxx" #include "Batch_Parametre.hxx" +using namespace std; // Definition des membres constants statiques // Definition des noms globaux pour les clefs en tant que references diff --git a/src/Batch/Batch_Parametre.hxx b/src/Batch/Batch_Parametre.hxx index 5a2d78a52..e4ed4d889 100644 --- a/src/Batch/Batch_Parametre.hxx +++ b/src/Batch/Batch_Parametre.hxx @@ -10,7 +10,6 @@ #ifndef _PARAMETRE_H_ #define _PARAMETRE_H_ -using namespace std; #include #include #include "Batch_InvalidKeyException.hxx" @@ -22,13 +21,13 @@ using namespace std; // TODO : remplacer ce mecanisme statique par la lecture // TODO : d'une descrption dans un fichier exterieur (genre XML) -#define def_extern_MapKey(mk) extern const string & mk; -#define def_static_MapKey(mk) const string Batch::Parametre::mk(#mk); \ - const string & mk = Batch::Parametre::mk; +#define def_extern_MapKey(mk) extern const std::string & mk; +#define def_static_MapKey(mk) const std::string Batch::Parametre::mk(#mk); \ + const std::string & mk = Batch::Parametre::mk; namespace Batch { - class Parametre : public map< string, Versatile > + class Parametre : public std::map< std::string, Versatile > { public: // Constructeur standard @@ -38,50 +37,50 @@ namespace Batch { Parametre::Parametre(const Parametre & PM); // Operateur de recherche dans la map - Versatile & operator [] (const string &); - const Versatile & operator [] (const string &) const; + Versatile & operator [] (const std::string &); + const Versatile & operator [] (const std::string &) const; // Operateur d'affectation Parametre & operator =(const Parametre & PM); // Declarations statique des clefs de la map // TODO : supprimer les declarations statiques des clefs de la map - static const string ACCOUNT; - static const string CHECKPOINT; - static const string CKPTINTERVAL; - static const string CREATIONTIME; - static const string EGROUP; - static const string ELIGIBLETIME; - static const string EUSER; - static const string EXECUTABLE; - static const string EXECUTIONHOST; - static const string HOLD; - static const string ID; - static const string INFILE; - static const string MAIL; - static const string MAXCPUTIME; - static const string MAXDISKSIZE; - static const string MAXRAMSIZE; - static const string MAXWALLTIME; - static const string MODIFICATIONTIME; - static const string NAME; - static const string OUTFILE; - static const string PID; - static const string QUEUE; - static const string QUEUEDTIME; - static const string SERVER; - static const string STARTDATE; - static const string STATE; - static const string TEXT; - static const string TMPDIR; - static const string USEDCPUTIME; - static const string USEDDISKSIZE; - static const string USEDRAMSIZE; - static const string USEDWALLTIME; - static const string USER; + static const std::string ACCOUNT; + static const std::string CHECKPOINT; + static const std::string CKPTINTERVAL; + static const std::string CREATIONTIME; + static const std::string EGROUP; + static const std::string ELIGIBLETIME; + static const std::string EUSER; + static const std::string EXECUTABLE; + static const std::string EXECUTIONHOST; + static const std::string HOLD; + static const std::string ID; + static const std::string INFILE; + static const std::string MAIL; + static const std::string MAXCPUTIME; + static const std::string MAXDISKSIZE; + static const std::string MAXRAMSIZE; + static const std::string MAXWALLTIME; + static const std::string MODIFICATIONTIME; + static const std::string NAME; + static const std::string OUTFILE; + static const std::string PID; + static const std::string QUEUE; + static const std::string QUEUEDTIME; + static const std::string SERVER; + static const std::string STARTDATE; + static const std::string STATE; + static const std::string TEXT; + static const std::string TMPDIR; + static const std::string USEDCPUTIME; + static const std::string USEDDISKSIZE; + static const std::string USEDRAMSIZE; + static const std::string USEDWALLTIME; + static const std::string USER; protected: - map< string, TypeParam > TypeMap; // map interne servant a controler le type de la valeur associee a chaque clef + std::map< std::string, TypeParam > TypeMap; // map interne servant a controler le type de la valeur associee a chaque clef private: diff --git a/src/Batch/Batch_PyVersatile.hxx b/src/Batch/Batch_PyVersatile.hxx index c8321fb56..21c8104eb 100644 --- a/src/Batch/Batch_PyVersatile.hxx +++ b/src/Batch/Batch_PyVersatile.hxx @@ -17,6 +17,7 @@ #include "Batch_TypeMismatchException.hxx" #include "Batch_ListIsFullException.hxx" #include "Batch_InvalidArgumentException.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_RunTimeException.cxx b/src/Batch/Batch_RunTimeException.cxx index fd9156078..ebfe7d622 100644 --- a/src/Batch/Batch_RunTimeException.cxx +++ b/src/Batch/Batch_RunTimeException.cxx @@ -9,6 +9,7 @@ */ #include "Batch_RunTimeException.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_RunTimeException.hxx b/src/Batch/Batch_RunTimeException.hxx index 53194ac0b..2b64c4207 100644 --- a/src/Batch/Batch_RunTimeException.hxx +++ b/src/Batch/Batch_RunTimeException.hxx @@ -20,7 +20,7 @@ namespace Batch { { public: // Constructeur - RunTimeException(string ch = "undefined") : GenericException("RunTimeException", ch) {} + RunTimeException(std::string ch = "undefined") : GenericException("RunTimeException", ch) {} }; } diff --git a/src/Batch/Batch_StringType.cxx b/src/Batch/Batch_StringType.cxx index 4d71c333c..fa01f0331 100644 --- a/src/Batch/Batch_StringType.cxx +++ b/src/Batch/Batch_StringType.cxx @@ -9,6 +9,7 @@ #include #include "Batch_StringType.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_StringType.hxx b/src/Batch/Batch_StringType.hxx index 4471b2976..bc97b63a0 100644 --- a/src/Batch/Batch_StringType.hxx +++ b/src/Batch/Batch_StringType.hxx @@ -10,7 +10,6 @@ #ifndef _STRINGTYPE_H_ #define _STRINGTYPE_H_ -using namespace std; #include #include "Batch_GenericType.hxx" @@ -20,21 +19,21 @@ namespace Batch { { public: // Constructeur - StringType(const string & s="") : _data(s) {} + StringType(const std::string & s="") : _data(s) {} // Conversion en chaine - virtual string affiche() const; - virtual operator string() const; + virtual std::string affiche() const; + virtual operator std::string() const; // Operateur d'affectation - virtual StringType & operator =(string); + virtual StringType & operator =(std::string); // Clone duplique l'objet et en fabrique un nouveau a l'aide de new // qu'il faudra detruire ensuite manuellement virtual GenericType * clone() const; protected: - string _data; + std::string _data; private: diff --git a/src/Batch/Batch_TypeMismatchException.cxx b/src/Batch/Batch_TypeMismatchException.cxx index 7376eedb6..4575eda4a 100644 --- a/src/Batch/Batch_TypeMismatchException.cxx +++ b/src/Batch/Batch_TypeMismatchException.cxx @@ -8,6 +8,7 @@ */ #include "Batch_TypeMismatchException.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_TypeMismatchException.hxx b/src/Batch/Batch_TypeMismatchException.hxx index fb6d1f913..6aa7d0933 100644 --- a/src/Batch/Batch_TypeMismatchException.hxx +++ b/src/Batch/Batch_TypeMismatchException.hxx @@ -19,7 +19,7 @@ namespace Batch { { public: // Constructeur - TypeMismatchException(string ch = "undefined") : GenericException("TypeMismatchException", ch) {} + TypeMismatchException(std::string ch = "undefined") : GenericException("TypeMismatchException", ch) {} }; } diff --git a/src/Batch/Batch_Versatile.cxx b/src/Batch/Batch_Versatile.cxx index a0adaf1bc..8ed9d9a3e 100644 --- a/src/Batch/Batch_Versatile.cxx +++ b/src/Batch/Batch_Versatile.cxx @@ -21,6 +21,7 @@ #include "Batch_Versatile.hxx" #include "Batch_TypeMismatchException.hxx" #include "Batch_ListIsFullException.hxx" +using namespace std; namespace Batch { diff --git a/src/Batch/Batch_Versatile.hxx b/src/Batch/Batch_Versatile.hxx index bf44b961e..d1a397ef7 100644 --- a/src/Batch/Batch_Versatile.hxx +++ b/src/Batch/Batch_Versatile.hxx @@ -10,7 +10,6 @@ #ifndef _VERSATILE_H_ #define _VERSATILE_H_ -using namespace std; #include #include #include @@ -35,7 +34,7 @@ namespace Batch { int maxelem; // le nombre d'elements autorises } TypeParam; - class Versatile : public list< GenericType * > + class Versatile : public std::list< GenericType * > { public: // Constructeur standard et destructeur @@ -47,14 +46,14 @@ namespace Batch { // Constructeur depuis le type de "base" Versatile(long l) : _discriminator(LONG), _maxsize(1), _name("long") { push_back(new LongType(l)); } - Versatile(const string & s) : _discriminator(STRING), _maxsize(1), _name("string") { push_back(new StringType(s)); } + Versatile(const std::string & s) : _discriminator(STRING), _maxsize(1), _name("string") { push_back(new StringType(s)); } Versatile(const Couple & c) : _discriminator(COUPLE), _maxsize(1), _name("couple") { push_back(new CoupleType(c)); } // Operateur d'affectation et de concatenation a partir d'un type de "base" Versatile & operator = (const long l) throw(TypeMismatchException); - Versatile & operator = (const string & ch) throw(TypeMismatchException); - Versatile & operator +=(const string & ch) throw(TypeMismatchException,ListIsFullException); - Versatile & operator , (const string & ch) throw(TypeMismatchException,ListIsFullException); + Versatile & operator = (const std::string & ch) throw(TypeMismatchException); + Versatile & operator +=(const std::string & ch) throw(TypeMismatchException,ListIsFullException); + Versatile & operator , (const std::string & ch) throw(TypeMismatchException,ListIsFullException); Versatile & operator = (const Couple & cp) throw(TypeMismatchException); Versatile & operator +=(const Couple & cp) throw(TypeMismatchException,ListIsFullException); Versatile & operator , (const Couple & cp) throw(TypeMismatchException,ListIsFullException); @@ -64,12 +63,12 @@ namespace Batch { // Conversion de type vers un type de "base" operator long() const throw(TypeMismatchException); - operator string() const throw(TypeMismatchException); + operator std::string() const throw(TypeMismatchException); operator Couple() const throw(TypeMismatchException); - string str() const throw(TypeMismatchException); + std::string str() const throw(TypeMismatchException); // Operateur pour l'affichage sur un stream - friend ostream & operator << (ostream & os, const Versatile & ); + friend std::ostream & operator << (std::ostream & os, const Versatile & ); // Positionnement et recuperation du type de l'element interne void setType(DiscriminatorType) throw(TypeMismatchException); @@ -80,8 +79,8 @@ namespace Batch { int getMaxSize() const { return _maxsize; } // Positionnement et recuperation du nom de l'objet - string getName() const; - void setName(const string & name); + std::string getName() const; + void setName(const std::string & name); protected: // Efface tous les elements internes de l'objet @@ -89,7 +88,7 @@ namespace Batch { DiscriminatorType _discriminator; // type de l'element interne int _maxsize; // nombre max d'elements internes - string _name; // nom de l'objet (sert pour les exceptions) + std::string _name; // nom de l'objet (sert pour les exceptions) private: diff --git a/src/CASCatch/CASCatch_SignalsHandler.cxx b/src/CASCatch/CASCatch_SignalsHandler.cxx index fd8cb5a0e..68cbb04bc 100644 --- a/src/CASCatch/CASCatch_SignalsHandler.cxx +++ b/src/CASCatch/CASCatch_SignalsHandler.cxx @@ -21,7 +21,7 @@ #include "CASCatch_SignalsHandler.h" #include - +using namespace std; CASCatch_SignalsHandler::CASCatch_SignalsHandler(bool theFloatingSignal) { diff --git a/src/Communication/MultiCommException.cxx b/src/Communication/MultiCommException.cxx index d649d9652..6eb40f7c6 100644 --- a/src/Communication/MultiCommException.cxx +++ b/src/Communication/MultiCommException.cxx @@ -1,4 +1,5 @@ #include "MultiCommException.hxx" +using namespace std; MultiCommException::MultiCommException(const char *message) { diff --git a/src/Communication/MultiCommException.hxx b/src/Communication/MultiCommException.hxx index 0f5466c86..fe029fc4a 100644 --- a/src/Communication/MultiCommException.hxx +++ b/src/Communication/MultiCommException.hxx @@ -3,11 +3,10 @@ #include -using namespace std; class MultiCommException { private: - string _message; + std::string _message; public: MultiCommException(const char *message); const char *what() const; diff --git a/src/Communication/Receiver.cxx b/src/Communication/Receiver.cxx index dc24b200f..559f8158e 100644 --- a/src/Communication/Receiver.cxx +++ b/src/Communication/Receiver.cxx @@ -1,5 +1,6 @@ #include "Receiver.hxx" #include +using namespace std; /*! return a deep copy of the array contained in the servant. diff --git a/src/Communication/ReceiverFactory.cxx b/src/Communication/ReceiverFactory.cxx index 31bcb6768..f3f0da6b1 100644 --- a/src/Communication/ReceiverFactory.cxx +++ b/src/Communication/ReceiverFactory.cxx @@ -1,5 +1,6 @@ #include "ReceiverFactory.hxx" #include "Receivers.hxx" +using namespace std; #ifdef COMP_CORBA_DOUBLE #define CorbaDNoCopyReceiver CorbaNCNoCopyReceiver diff --git a/src/Communication/Receivers.cxx b/src/Communication/Receivers.cxx index e01125aa7..a5d65ae15 100644 --- a/src/Communication/Receivers.cxx +++ b/src/Communication/Receivers.cxx @@ -1,5 +1,6 @@ #include "poa.h" #include "utilities.h" +using namespace std; #define TAILLE_SPLIT 100000 #define TIMEOUT 20 diff --git a/src/Communication/SALOMEMultiComm.cxx b/src/Communication/SALOMEMultiComm.cxx index 71c4135e6..c832478ab 100644 --- a/src/Communication/SALOMEMultiComm.cxx +++ b/src/Communication/SALOMEMultiComm.cxx @@ -1,4 +1,5 @@ #include "SALOMEMultiComm.hxx" +using namespace std; SALOMEMultiComm::SALOMEMultiComm():_type(SALOME::CORBA_) { diff --git a/src/Communication/SALOME_Comm_i.cxx b/src/Communication/SALOME_Comm_i.cxx index 00fe36a11..49dd14a17 100644 --- a/src/Communication/SALOME_Comm_i.cxx +++ b/src/Communication/SALOME_Comm_i.cxx @@ -7,6 +7,7 @@ #include "utilities.h" #include "SenderFactory.hxx" +using namespace std; CORBA::ORB_var &getGlobalORB(){ ORB_INIT &init = *SINGLETON_::Instance(); diff --git a/src/Communication/SALOME_Comm_i.hxx b/src/Communication/SALOME_Comm_i.hxx index 6a8c23ba9..3fac77789 100644 --- a/src/Communication/SALOME_Comm_i.hxx +++ b/src/Communication/SALOME_Comm_i.hxx @@ -11,7 +11,6 @@ #define TIMEOUT 20 -using namespace std; /*! Generic servant class for senders that factorizes all the common methods and attributes necessary to senders. diff --git a/src/Communication/SenderFactory.cxx b/src/Communication/SenderFactory.cxx index 35b4af0b9..3b1f81165 100644 --- a/src/Communication/SenderFactory.cxx +++ b/src/Communication/SenderFactory.cxx @@ -2,6 +2,7 @@ #include "utilities.h" #include "SALOMEMultiComm.hxx" #include "SALOME_Comm_i.hxx" +using namespace std; #ifdef COMP_CORBA_DOUBLE #define SALOME_CorbaDoubleSender SALOME_CorbaDoubleNCSender_i diff --git a/src/Container/Component_i.cxx b/src/Container/Component_i.cxx index cad8ba99c..a03faf92b 100644 --- a/src/Container/Component_i.cxx +++ b/src/Container/Component_i.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOME_Component_i.hxx" #include "RegistryConnexion.hxx" #include "OpUtil.hxx" @@ -34,6 +33,7 @@ using namespace std; #include #include #include "utilities.h" +using namespace std; extern bool _Sleeping ; static Engines_Component_i * theEngines_Component ; diff --git a/src/Container/SALOME_Container.cxx b/src/Container/SALOME_Container.cxx index 41a526d0a..02b2acce4 100644 --- a/src/Container/SALOME_Container.cxx +++ b/src/Container/SALOME_Container.cxx @@ -47,10 +47,10 @@ #include -extern "C" void HandleServerSideSignals(CORBA::ORB_ptr theORB); - using namespace std; +extern "C" void HandleServerSideSignals(CORBA::ORB_ptr theORB); + static PyMethodDef MethodPyVoidMethod[] = {{ NULL, NULL }}; int main(int argc, char* argv[]) diff --git a/src/Container/SALOME_Container_SignalsHandler.cxx b/src/Container/SALOME_Container_SignalsHandler.cxx index 268de2f0b..bb2d8989f 100644 --- a/src/Container/SALOME_Container_SignalsHandler.cxx +++ b/src/Container/SALOME_Container_SignalsHandler.cxx @@ -23,6 +23,7 @@ #include "CASCatch_SignalsHandler.h" // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC +using namespace std; extern "C" void HandleServerSideSignals(CORBA::ORB_ptr theORB) { diff --git a/src/Container/SALOME_Container_i.hxx b/src/Container/SALOME_Container_i.hxx index e960a3b83..6a65dcb3c 100644 --- a/src/Container/SALOME_Container_i.hxx +++ b/src/Container/SALOME_Container_i.hxx @@ -91,7 +91,7 @@ protected: std::map remove_map ; omni_mutex _numInstanceMutex ; // if several threads on the same object -private: + //private: int _argc ; char** _argv ; diff --git a/src/DataTypeCatalog/SALOME_DataTypeCatalog_Client.cxx b/src/DataTypeCatalog/SALOME_DataTypeCatalog_Client.cxx index 083cc4b14..580d16b5c 100644 --- a/src/DataTypeCatalog/SALOME_DataTypeCatalog_Client.cxx +++ b/src/DataTypeCatalog/SALOME_DataTypeCatalog_Client.cxx @@ -24,7 +24,6 @@ // File : SALOME_DataTypeCatalog_Client.cxx // Module : SALOME -using namespace std; /* $Header$ */ #include @@ -32,6 +31,7 @@ using namespace std; #include "SALOME_DataTypeCatalog.hh" #include #include "utilities.h" +using namespace std; int main(int argc,char **argv) { diff --git a/src/DataTypeCatalog/SALOME_DataTypeCatalog_impl.cxx b/src/DataTypeCatalog/SALOME_DataTypeCatalog_impl.cxx index 1fb5f45e1..cb5337e67 100644 --- a/src/DataTypeCatalog/SALOME_DataTypeCatalog_impl.cxx +++ b/src/DataTypeCatalog/SALOME_DataTypeCatalog_impl.cxx @@ -26,10 +26,10 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOME_DataTypeCatalog_impl.hxx" #include "Utils_ExceptHandlers.hxx" #include +using namespace std; UNEXPECT_CATCH(DTC_NotFound, SALOME_DataTypeCatalog::NotFound); diff --git a/src/Event/SALOME_Event.cxx b/src/Event/SALOME_Event.cxx index e12fc070f..97f81cc5f 100644 --- a/src/Event/SALOME_Event.cxx +++ b/src/Event/SALOME_Event.cxx @@ -34,6 +34,7 @@ #include #include #include +using namespace std; #ifdef _DEBUG_ static int MYDEBUG = 0; diff --git a/src/HDFPersist/HDFascii.cc b/src/HDFPersist/HDFascii.cc index 49cc43099..e5719df68 100644 --- a/src/HDFPersist/HDFascii.cc +++ b/src/HDFPersist/HDFascii.cc @@ -1,4 +1,3 @@ -using namespace std; // File : SALOMEDS_Tool.cxx // Created : Mon Oct 21 16:24:34 2002 // Author : Sergey RUIN @@ -19,6 +18,7 @@ using namespace std; #include #include #include +using namespace std; bool CreateAttributeFromASCII(HDFinternalObject *father, FILE* fp); bool CreateDatasetFromASCII(HDFcontainerObject *father, FILE *fp); diff --git a/src/HDFPersist/HDFattribute.cc b/src/HDFPersist/HDFattribute.cc index b87cb0799..5dff5b35e 100644 --- a/src/HDFPersist/HDFattribute.cc +++ b/src/HDFPersist/HDFattribute.cc @@ -24,7 +24,6 @@ // File : HDFattribute.cc // Module : SALOME -using namespace std; extern "C" { #include "hdfi.h" @@ -32,6 +31,7 @@ extern "C" #include "HDFexception.hxx" #include "HDFattribute.hxx" #include "HDFinternalObject.hxx" +using namespace std; HDFattribute::HDFattribute(char *name,HDFinternalObject *father,hdf_type type, size_t size) : HDFobject(name) diff --git a/src/HDFPersist/HDFcontainerObject.cc b/src/HDFPersist/HDFcontainerObject.cc index 2f5398bd7..1a84b1db1 100644 --- a/src/HDFPersist/HDFcontainerObject.cc +++ b/src/HDFPersist/HDFcontainerObject.cc @@ -24,7 +24,6 @@ // File : HDFcontainerObject.cc // Module : SALOME -using namespace std; extern "C" { #include "hdfi.h" @@ -32,6 +31,7 @@ extern "C" #include "HDFcontainerObject.hxx" #include "HDFexception.hxx" #include "utilities.h" +using namespace std; HDFcontainerObject::HDFcontainerObject(char *name) : HDFinternalObject(name) diff --git a/src/HDFPersist/HDFconvert.cc b/src/HDFPersist/HDFconvert.cc index 31c19c953..434c666da 100644 --- a/src/HDFPersist/HDFconvert.cc +++ b/src/HDFPersist/HDFconvert.cc @@ -24,8 +24,8 @@ // File : HDFconvert.cc // Module : SALOME -using namespace std; #include "HDFconvert.hxx" +using namespace std; int HDFConvert::FromAscii(const string& file, const HDFcontainerObject & hdf_container, const string& nomdataset) { diff --git a/src/HDFPersist/HDFdataset.cc b/src/HDFPersist/HDFdataset.cc index 07d75e11c..ac02e32db 100644 --- a/src/HDFPersist/HDFdataset.cc +++ b/src/HDFPersist/HDFdataset.cc @@ -24,7 +24,6 @@ // File : HDFdataset.cc // Module : SALOME -using namespace std; extern "C" { #include "hdfi.h" @@ -35,6 +34,7 @@ extern "C" #include "HDFexception.hxx" #include +using namespace std; herr_t dataset_attr(hid_t loc_id, const char *attr_name, void *operator_data) { diff --git a/src/HDFPersist/HDFexplorer.cc b/src/HDFPersist/HDFexplorer.cc index 2e86f820e..114732d48 100644 --- a/src/HDFPersist/HDFexplorer.cc +++ b/src/HDFPersist/HDFexplorer.cc @@ -24,11 +24,11 @@ // File : HDFexplorer.cc // Module : SALOME -using namespace std; #include "HDFcontainerObject.hxx" #include "HDFexception.hxx" #include "HDFinternalObject.hxx" #include "HDFexplorer.hxx" +using namespace std; HDFexplorer::HDFexplorer(HDFcontainerObject *container) { diff --git a/src/HDFPersist/HDFfile.cc b/src/HDFPersist/HDFfile.cc index 469430a34..9fbe7d70d 100644 --- a/src/HDFPersist/HDFfile.cc +++ b/src/HDFPersist/HDFfile.cc @@ -24,7 +24,6 @@ // File : HDFfile.cc // Module : SALOME -using namespace std; extern "C" { #include "hdfi.h" @@ -34,6 +33,7 @@ extern "C" #include #include "HDFfile.hxx" #include "HDFexception.hxx" +using namespace std; herr_t file_attr(hid_t loc_id, const char *attr_name, void *operator_data) { diff --git a/src/HDFPersist/HDFgroup.cc b/src/HDFPersist/HDFgroup.cc index b08f4de6e..a51e13b0b 100644 --- a/src/HDFPersist/HDFgroup.cc +++ b/src/HDFPersist/HDFgroup.cc @@ -24,7 +24,6 @@ // File : HDFgroup.cc // Module : SALOME -using namespace std; extern "C" { #include "hdfi.h" @@ -32,6 +31,7 @@ extern "C" } #include "HDFgroup.hxx" #include "HDFexception.hxx" +using namespace std; herr_t group_attr(hid_t loc_id, const char *attr_name, void *operator_data) { diff --git a/src/HDFPersist/HDFinternalObject.cc b/src/HDFPersist/HDFinternalObject.cc index 2cf6ed011..7ef6fb8e7 100644 --- a/src/HDFPersist/HDFinternalObject.cc +++ b/src/HDFPersist/HDFinternalObject.cc @@ -24,12 +24,12 @@ // File : HDFinternalObject.cc // Module : SALOME -using namespace std; extern "C" { #include "hdfi.h" } #include "HDFinternalObject.hxx" +using namespace std; HDFinternalObject::HDFinternalObject(char *name) : HDFobject(name) diff --git a/src/HDFPersist/HDFobject.cc b/src/HDFPersist/HDFobject.cc index 81fc689c8..28b87a63f 100644 --- a/src/HDFPersist/HDFobject.cc +++ b/src/HDFPersist/HDFobject.cc @@ -24,7 +24,6 @@ // File : HDFobject.cc // Module : SALOME -using namespace std; #include "HDFobject.hxx" extern "C" { @@ -32,6 +31,7 @@ extern "C" #include } #include "utilities.h" +using namespace std; HDFobject::HDFobject(char *name) { diff --git a/src/HDFPersist/test3.cxx b/src/HDFPersist/test3.cxx index 9f28614af..a1922f9b9 100644 --- a/src/HDFPersist/test3.cxx +++ b/src/HDFPersist/test3.cxx @@ -24,10 +24,10 @@ // File : test3.cxx // Module : SALOME -using namespace std; #include #include "HDFOI.hxx" #include +using namespace std; int main() diff --git a/src/HDFPersist/test4.cxx b/src/HDFPersist/test4.cxx index 9c85af23f..04bdc37c5 100644 --- a/src/HDFPersist/test4.cxx +++ b/src/HDFPersist/test4.cxx @@ -24,10 +24,10 @@ // File : test4.cxx // Module : SALOME -using namespace std; #include #include "HDFOI.hxx" #include +using namespace std; int main() diff --git a/src/HDFPersist/test5.cxx b/src/HDFPersist/test5.cxx index e025798dd..33ab02da9 100644 --- a/src/HDFPersist/test5.cxx +++ b/src/HDFPersist/test5.cxx @@ -24,10 +24,10 @@ // File : test5.cxx // Module : SALOME -using namespace std; #include #include "HDFOI.hxx" #include +using namespace std; int main() diff --git a/src/HDFPersist/test6.cxx b/src/HDFPersist/test6.cxx index 8be92dec0..cd92a5d14 100644 --- a/src/HDFPersist/test6.cxx +++ b/src/HDFPersist/test6.cxx @@ -24,10 +24,10 @@ // File : test6.cxx // Module : SALOME -using namespace std; #include #include "HDFOI.hxx" #include +using namespace std; int main() { diff --git a/src/HDFPersist/test7.cxx b/src/HDFPersist/test7.cxx index 935834bd2..00d445738 100644 --- a/src/HDFPersist/test7.cxx +++ b/src/HDFPersist/test7.cxx @@ -24,9 +24,9 @@ // File : test7.cxx // Module : SALOME -using namespace std; #include "HDFIO.hxx" #include +using namespace std; int main() { diff --git a/src/HDFPersist/test8.cxx b/src/HDFPersist/test8.cxx index c53e84d29..f73c840a4 100644 --- a/src/HDFPersist/test8.cxx +++ b/src/HDFPersist/test8.cxx @@ -24,10 +24,10 @@ // File : test8.cxx // Module : SALOME -using namespace std; #include #include "HDFOI.hxx" #include +using namespace std; int main() diff --git a/src/HDFPersist/test9.cxx b/src/HDFPersist/test9.cxx index 605eb0793..0034c4242 100644 --- a/src/HDFPersist/test9.cxx +++ b/src/HDFPersist/test9.cxx @@ -24,10 +24,10 @@ // File : test9.cxx // Module : SALOME -using namespace std; #include #include "HDFOI.hxx" #include +using namespace std; int main() diff --git a/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx b/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx index e86b0c0a1..7908d60ae 100644 --- a/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx +++ b/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include #include #include @@ -40,6 +39,7 @@ using namespace std; #include "SALOME_LifeCycleCORBA.hxx" #include CORBA_CLIENT_HEADER(SALOME_ModuleCatalog) #include "SALOME_NamingService.hxx" +using namespace std; SALOME_LifeCycleCORBA::SALOME_LifeCycleCORBA() { diff --git a/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.hxx b/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.hxx index 2338fe34c..23b4e8797 100644 --- a/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.hxx +++ b/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.hxx @@ -55,7 +55,7 @@ protected: SALOME_NamingService *_NS; Engines::Container_var _FactoryServer ; -private: + //private: std::string ContainerName( const char * aComputerContainer , std::string * theComputer , std::string * theContainer ) ; diff --git a/src/LifeCycleCORBA/TestLifeCycleCORBA.cxx b/src/LifeCycleCORBA/TestLifeCycleCORBA.cxx index b67b988b6..603c32814 100644 --- a/src/LifeCycleCORBA/TestLifeCycleCORBA.cxx +++ b/src/LifeCycleCORBA/TestLifeCycleCORBA.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "utilities.h" #include #include @@ -36,6 +35,7 @@ using namespace std; #include "SALOME_NamingService.hxx" #include "SALOME_LifeCycleCORBA.hxx" #include +using namespace std; int main (int argc, char * argv[]) { diff --git a/src/Loader/InquireServersQThread.cxx b/src/Loader/InquireServersQThread.cxx index d93260dc2..a293e4766 100644 --- a/src/Loader/InquireServersQThread.cxx +++ b/src/Loader/InquireServersQThread.cxx @@ -7,7 +7,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "utilities.h" #include "InquireServersQThread.h" @@ -37,6 +36,7 @@ using namespace std; #include "SALOME_NamingService.hxx" //#include "utilities.h" #include "OpUtil.hxx" +using namespace std; #include CORBA_CLIENT_HEADER(SALOME_Session) #include CORBA_CLIENT_HEADER(SALOME_Registry) diff --git a/src/Loader/SALOME_Session_Loader.cxx b/src/Loader/SALOME_Session_Loader.cxx index 09cdad05e..0db216d3c 100644 --- a/src/Loader/SALOME_Session_Loader.cxx +++ b/src/Loader/SALOME_Session_Loader.cxx @@ -7,7 +7,6 @@ // Module : SALOME // $Header$ -using namespace std; /*! \file SALOME_Session_loader.cxx */ @@ -28,6 +27,7 @@ using namespace std; #include #include "InquireServersQThread.h" +using namespace std; int main(int argc, char **argv) { diff --git a/src/Logger/SALOME_Logger_Server.cxx b/src/Logger/SALOME_Logger_Server.cxx index 5d1b3a4a7..df2cd8a1c 100644 --- a/src/Logger/SALOME_Logger_Server.cxx +++ b/src/Logger/SALOME_Logger_Server.cxx @@ -8,12 +8,13 @@ // Author : Vasily Rusyaev // Module : SALOME -using namespace std; #include #include "SALOME_Logger_Server.hxx" #include #include #include +using namespace std; + omni_mutex Logger::myLock; ///////////////////////////////////////////////////////////////////// diff --git a/src/Logger/SALOME_Trace.cxx b/src/Logger/SALOME_Trace.cxx index d139476c1..1a33333eb 100644 --- a/src/Logger/SALOME_Trace.cxx +++ b/src/Logger/SALOME_Trace.cxx @@ -8,13 +8,13 @@ // Author : Vasily Rusyaev // Module : SALOME -using namespace std; #include "SALOME_Trace.hxx" #include #include //#include #include #include +using namespace std; ////////////////////////////////////////////////////////////////////// // Construction/Destruction diff --git a/src/MPIContainer/MPIContainer_i.cxx b/src/MPIContainer/MPIContainer_i.cxx index b3fb62e6b..ad729c45a 100644 --- a/src/MPIContainer/MPIContainer_i.cxx +++ b/src/MPIContainer/MPIContainer_i.cxx @@ -24,30 +24,38 @@ // File : MPIContainer_i.cxx // Module : SALOME -using namespace std; #include #include #include #include "MPIContainer_i.hxx" +#include "SALOME_NamingService.hxx" +#include "Utils_SINGLETON.hxx" +#include "OpUtil.hxx" #include "utilities.h" +using namespace std; -MPIContainer_i::MPIContainer_i(int nbproc, int numproc, - CORBA::ORB_ptr orb, - PortableServer::POA_ptr poa, - char * containerName) - : Engines_Container_i(orb,poa,containerName,0,0), MPIObject_i(nbproc,numproc) +// L'appel au registry SALOME ne se fait que pour le process 0 +Engines_MPIContainer_i::Engines_MPIContainer_i(int nbproc, int numproc, + CORBA::ORB_ptr orb, + PortableServer::POA_ptr poa, + char * containerName, + int argc, char *argv[]) + : Engines_Container_i(orb,poa,containerName,argc,argv,false,false), MPIObject_i(nbproc,numproc) { + MESSAGE("[" << numproc << "] activate object"); _id = _poa->activate_object(this); - MESSAGE("[" << _numproc << "] containerName=" << _containerName); - if( _numproc == 0 ){ + if(numproc==0){ + + // _NS = new SALOME_NamingService(_orb); _NS = SINGLETON_::Instance() ; ASSERT(SINGLETON_::IsAlreadyExisting()) ; _NS->init_orb( orb ) ; Engines::Container_ptr pCont = Engines::Container::_narrow(POA_Engines::MPIContainer::_this()); - _NS->Register(pCont, _containerName.c_str()); + SCRUTE(_containerName); + _NS->Register(pCont, _containerName.c_str()); } // Root recupere les ior des container des autre process @@ -55,52 +63,176 @@ MPIContainer_i::MPIContainer_i(int nbproc, int numproc, BCastIOR(_orb,pobj,true); } -MPIContainer_i::~MPIContainer_i(void) +Engines_MPIContainer_i::Engines_MPIContainer_i(int nbproc, int numproc) + : Engines_Container_i(), MPIObject_i(nbproc,numproc) +{ +} + +Engines_MPIContainer_i::~Engines_MPIContainer_i(void) { + MESSAGE("[" << _numproc << "] Engines_MPIContainer_i::~Engines_MPIContainer_i()"); if( !handle_map.empty() ){ - MESSAGE("[" << _numproc << "] MPIContainer_i::~MPIContainer_i: warning destroy a not empty container"); + MESSAGE("[" << _numproc << "] Engines_MPIContainer_i::~Engines_MPIContainer_i: warning destroy a not empty container"); } } +// Start MPI Container +Engines::MPIContainer_ptr Engines_MPIContainer_i::start_MPIimpl( + const char* ContainerName, + CORBA::Short nbproc ) +{ + + char nbp[1024]; + + MESSAGE("[" << _numproc << "] start_impl argc " << _argc << " ContainerName " << ContainerName + << hex << this << dec) ; + _numInstanceMutex.lock() ; // lock on the instance number + + CORBA::Object_var obj = Engines::MPIContainer::_nil() ; + bool nilvar = true ; + try { + string cont("/Containers/"); + cont += machineName() ; + cont += "/" ; + cont += ContainerName; + INFOS("[" << _numproc << "] " << machineName() << " start_impl unknown container " << cont.c_str() + << " try to Resolve" ); + obj = _NS->Resolve( cont.c_str() ); + nilvar = CORBA::is_nil( obj ) ; + if ( nilvar ) { + INFOS("[" << _numproc << "] " << machineName() << " start_impl unknown container " + << ContainerName); + } + } + catch (ServiceUnreachable&) { + INFOS("[" << _numproc << "] " << machineName() << "Caught exception: Naming Service Unreachable"); + } + catch (...) { + INFOS("[" << _numproc << "] " << machineName() << "Caught unknown exception."); + } + if ( !nilvar ) { + _numInstanceMutex.unlock() ; + MESSAGE("[" << _numproc << "] start_impl container found without new launch") ; + return Engines::MPIContainer::_narrow(obj); + } + int i = 0 ; + while ( _argv[ i ] ) { + MESSAGE("[" << _numproc << "] argv" << i << " " << _argv[ i ]) ; + i++ ; + } + sprintf(nbp,"mpirun -np %d SALOME_MPIContainer ",nbproc); + string shstr(nbp); + shstr += ContainerName ; + if ( _argc == 4 ) { + shstr += " " ; + shstr += _argv[ 2 ] ; + shstr += " " ; + shstr += _argv[ 3 ] ; + } + shstr += " > /tmp/" ; + shstr += ContainerName ; + shstr += ".log 2>&1 &" ; + MESSAGE("system(" << shstr << ")") ; + int status = system( shstr.c_str() ) ; + if (status == -1) { + INFOS("[" << _numproc << "] Engines_MPIContainer_i::start_impl SALOME_MPIContainer failed (system command status -1)") ; + } + else if (status == 217) { + INFOS("[" << _numproc << "] Engines_MPIContainer_i::start_impl SALOME_MPIContainer failed (system command status 217)") ; + } + INFOS("[" << _numproc << "] " << machineName() << " Engines_MPIContainer_i::start_impl SALOME_MPIContainer launch done"); + + obj = Engines::MPIContainer::_nil() ; + try { + string cont("/Containers/"); + cont += machineName() ; + cont += "/" ; + cont += ContainerName; + nilvar = true ; + int count = 20 ; + while ( nilvar && count >= 0) { + sleep( 1 ) ; + obj = _NS->Resolve(cont.c_str()); + nilvar = CORBA::is_nil( obj ) ; + if ( nilvar ) { + INFOS("[" << _numproc << "] " << count << ". " << machineName() + << " start_impl unknown container " << cont.c_str()); + count -= 1 ; + } + } + _numInstanceMutex.unlock() ; + if ( !nilvar ) { + MESSAGE("[" << _numproc << "] start_impl container found after new launch of SALOME_MPIContainer") ; + } + return Engines::MPIContainer::_narrow(obj); + } + catch (ServiceUnreachable&) { + INFOS("[" << _numproc << "] " << machineName() << "Caught exception: Naming Service Unreachable"); + } + catch (...) { + INFOS("[" << _numproc << "] " << machineName() << "Caught unknown exception."); + } + _numInstanceMutex.unlock() ; + MESSAGE("[" << _numproc << "] start_impl MPI container not found after new launch of SALOME_MPIContainer") ; + return Engines::MPIContainer::_nil() ; +} + // Load component -Engines::Component_ptr MPIContainer_i::load_impl(const char* nameToRegister, +Engines::Component_ptr Engines_MPIContainer_i::load_impl(const char* nameToRegister, const char* componentName) { int ip; - Engines::Component_var iobject; - Engines::MPIObject_var pobj; - char cproc[4]; if( _numproc == 0 ){ // Invocation du chargement du composant dans les autres process for(ip= 1;ip<_nbproc;ip++) - (Engines::MPIContainer::_narrow((*_tior)[ip]))->load_impl(nameToRegister, + (Engines::MPIContainer::_narrow((*_tior)[ip]))->SPload_impl(nameToRegister, componentName); } + return Lload_impl(nameToRegister,componentName); + +} + +// Load component +void Engines_MPIContainer_i::SPload_impl(const char* nameToRegister, + const char* componentName) +{ + Lload_impl(nameToRegister,componentName); +} + +Engines::Component_ptr Engines_MPIContainer_i::Lload_impl( + const char* nameToRegister, + const char* componentName) +{ + Engines::Component_var iobject; + Engines::MPIObject_var pobj; + char cproc[4]; + sprintf(cproc,"_%d",_numproc); - BEGIN_OF("[" << _numproc << "] MPIContainer_i::load_impl"); + BEGIN_OF("[" << _numproc << "] MPIContainer_i::Lload_impl"); _numInstanceMutex.lock() ; // lock on the instance number _numInstance++ ; char _aNumI[12]; sprintf(_aNumI,"%d",_numInstance) ; - _numInstanceMutex.unlock() ; string _impl_name = componentName; - string instanceName = string(nameToRegister) + "_inst_" + _aNumI + cproc; + string _nameToRegister = nameToRegister; + string instanceName = _nameToRegister + "_inst_" + _aNumI + cproc; + MESSAGE("[" << _numproc << "] instanceName=" << instanceName); string absolute_impl_name(_impl_name); MESSAGE("[" << _numproc << "] absolute_impl_name=" << absolute_impl_name); void * handle = dlopen(absolute_impl_name.c_str(), RTLD_LAZY); if(!handle){ - MESSAGE("[" << _numproc << "] Can't load shared library : " << absolute_impl_name); - MESSAGE("[" << _numproc << "] error dlopen: " << dlerror()); + INFOS("[" << _numproc << "] Can't load shared library : " << absolute_impl_name); + INFOS("[" << _numproc << "] error dlopen: " << dlerror()); return Engines::Component::_nil() ; } - string factory_name = string(nameToRegister) + string("Engine_factory"); + string factory_name = _nameToRegister + string("Engine_factory"); MESSAGE("[" << _numproc << "] factory_name=" << factory_name) ; PortableServer::ObjectId * (*MPIComponent_factory) (int,int, @@ -121,6 +253,7 @@ Engines::Component_ptr MPIContainer_i::load_impl(const char* nameToRegister, if ((error = dlerror()) != NULL){ // Try to load a sequential component MESSAGE("[" << _numproc << "] Try to load a sequential component"); + _numInstanceMutex.unlock() ; iobject = Engines_Container_i::load_impl(nameToRegister,componentName); if( CORBA::is_nil(iobject) ) return Engines::Component::_duplicate(iobject); } @@ -128,32 +261,32 @@ Engines::Component_ptr MPIContainer_i::load_impl(const char* nameToRegister, // Instanciation du composant parallele MESSAGE("[" << _numproc << "] Try to load a parallel component"); PortableServer::ObjectId * id = (MPIComponent_factory) - (_nbproc,_numproc,_orb, _poa, _id, instanceName.c_str(), nameToRegister); + (_nbproc,_numproc,_orb, _poa, _id, instanceName.c_str(), _nameToRegister.c_str()); // get reference from id CORBA::Object_var o = _poa->id_to_reference(*id); pobj = Engines::MPIObject::_narrow(o) ; - iobject = Engines::Component::_narrow(pobj) ; + iobject = Engines::Component::_narrow(o) ; } - // Root recupere les ior des composants des autre process - BCastIOR(_orb,pobj,false); - if( _numproc == 0 ){ // utiliser + tard le registry ici : // register the engine under the name containerName.dir/nameToRegister.object - string component_registerName = _containerName + "/" + nameToRegister; + string component_registerName = _containerName + "/" + _nameToRegister; _NS->Register(iobject, component_registerName.c_str()) ; } - _numInstanceMutex.lock() ; // lock on the add on handle_map (necessary ?) handle_map[instanceName] = handle; _numInstanceMutex.unlock() ; - END_OF("[" <<_numproc << "] MPIContainer_i::load_impl"); + + // Root recupere les ior des composants des autre process + BCastIOR(_orb,pobj,false); + + END_OF("[" <<_numproc << "] MPIContainer_i::Lload_impl"); return Engines::Component::_duplicate(iobject); } -void MPIContainer_i::remove_impl(Engines::Component_ptr component_i) +void Engines_MPIContainer_i::remove_impl(Engines::Component_ptr component_i) { int ip; Engines::Component_ptr cptr; @@ -168,10 +301,29 @@ void MPIContainer_i::remove_impl(Engines::Component_ptr component_i) for(ip= 1;ip<_nbproc;ip++){ spcptr = Engines::MPIObject::_narrow((*(pcptr->tior()))[ip]); cptr = (Engines::Component_ptr)spcptr; - (Engines::MPIContainer::_narrow((*_tior)[ip]))->remove_impl(cptr); + (Engines::MPIContainer::_narrow((*_tior)[ip]))->SPremove_impl(cptr); } } + Lremove_impl(component_i); +} + +void Engines_MPIContainer_i::SPremove_impl(Engines::Component_ptr component_i) +{ + Lremove_impl(component_i); +} + +void Engines_MPIContainer_i::Lremove_impl(Engines::Component_ptr component_i) +{ + int ip; + Engines::Component_ptr cptr; + Engines::MPIObject_ptr pcptr; + Engines::MPIObject_ptr spcptr; + + BEGIN_OF("[" << _numproc << "] MPIContainer_i::Lremove_impl"); + + ASSERT(! CORBA::is_nil(component_i)); + string instanceName = component_i->instanceName() ; MESSAGE("[" << _numproc << "] unload component " << instanceName); component_i->destroy() ; @@ -190,29 +342,45 @@ void MPIContainer_i::remove_impl(Engines::Component_ptr component_i) { MESSAGE("[" << _numproc << "] stay " << (*im).first); } + + END_OF("[" << _numproc << "] MPIContainer_i::Lremove_impl"); + } -void MPIContainer_i::finalize_removal() +void Engines_MPIContainer_i::finalize_removal() { int ip; - MESSAGE("[" << _numproc << "] finalize unload : dlclose"); - if( _numproc == 0 ){ // Invocation de la destruction du composant dans les autres process for(ip= 1;ip<_nbproc;ip++) - (Engines::MPIContainer::_narrow((*_tior)[ip]))->finalize_removal(); + (Engines::MPIContainer::_narrow((*_tior)[ip]))->SPfinalize_removal(); } + Lfinalize_removal(); +} + +void Engines_MPIContainer_i::SPfinalize_removal() +{ + Lfinalize_removal(); +} + +void Engines_MPIContainer_i::Lfinalize_removal() +{ + BEGIN_OF("[" << _numproc << "] MPIContainer_i::Lfinalize_removal"); + map::iterator im ; - _numInstanceMutex.lock() ; // lock on the explore remove_map & dlclose + // lock on the explore remove_map & dlclose + _numInstanceMutex.lock() ; for (im = remove_map.begin() ; im != remove_map.end() ; im ++) { void * handle = (*im).second ; - dlclose(handle) ; MESSAGE("[" << _numproc << "] dlclose " << (*im).first); + dlclose(handle) ; } + MESSAGE("[" << _numproc << "] remove_map.clear()"); remove_map.clear() ; _numInstanceMutex.unlock() ; - MESSAGE("[" << _numproc << "] remove_map.clear()"); + + END_OF("[" << _numproc << "] MPIContainer_i::Lfinalize_removal"); } diff --git a/src/MPIContainer/MPIContainer_i.hxx b/src/MPIContainer/MPIContainer_i.hxx index 390f6ce73..7d9ddc9a2 100644 --- a/src/MPIContainer/MPIContainer_i.hxx +++ b/src/MPIContainer/MPIContainer_i.hxx @@ -28,34 +28,55 @@ #define _SALOME_PCONTAINER_ #include -#include CORBA_SERVER_HEADER(MPIContainer) +#include CORBA_SERVER_HEADER(SALOME_MPIContainer) #include "SALOME_Container_i.hxx" -#include "SALOME_NamingService.hxx" -#include "Utils_SINGLETON.hxx" -#include "OpUtil.hxx" #include "MPIObject_i.hxx" -class MPIContainer_i : public POA_Engines::MPIContainer, - public Engines_Container_i, - public MPIObject_i +class Engines_MPIContainer_i : public POA_Engines::MPIContainer, + public Engines_Container_i, + public MPIObject_i { public: // Constructor - MPIContainer_i( int nbproc, int numproc, - CORBA::ORB_ptr orb, - PortableServer::POA_ptr poa, - char * containerName); + Engines_MPIContainer_i( int nbproc, int numproc, + CORBA::ORB_ptr orb, + PortableServer::POA_ptr poa, + char * containerName, + int argc, char *argv[]); + Engines_MPIContainer_i(int nbproc, int numproc); // Destructor - ~MPIContainer_i(); + ~Engines_MPIContainer_i(); - // Load a component + // Launch a new MPI container from the current container + Engines::MPIContainer_ptr start_MPIimpl(const char* ContainerName, + CORBA::Short nbproc); + + // Load a component in current MPI container + // synchronous version for process 0 Engines::Component_ptr load_impl(const char* nameToRegister, const char* componentName); + // asynchronous version for other process + void SPload_impl(const char* nameToRegister, const char* componentName); - // Unload a component + // Unload a component from current MPI container + // synchronous version for process 0 void remove_impl(Engines::Component_ptr component_i); + // asynchronous version for other process + void SPremove_impl(Engines::Component_ptr component_i); + + // synchronous version for process 0 void finalize_removal(); + // asynchronous version for other process + void SPfinalize_removal(); + + private: + // local version to not duplicate code + // called by synchronous and asynchronous version + Engines::Component_ptr Lload_impl(const char* nameToRegister, + const char* componentName); + void Lremove_impl(Engines::Component_ptr component_i); + void Lfinalize_removal(); }; #endif diff --git a/src/MPIContainer/MPIObject_i.cxx b/src/MPIContainer/MPIObject_i.cxx index 7f9324a9f..0da19e33c 100644 --- a/src/MPIContainer/MPIObject_i.cxx +++ b/src/MPIContainer/MPIObject_i.cxx @@ -24,15 +24,15 @@ // File : MPIObject_i.cxx // Module : SALOME -using namespace std; #include "MPIObject_i.hxx" #include "utilities.h" #include +using namespace std; MPIObject_i::MPIObject_i() { - _nbproc = 1; - _numproc = 0; + MPI_Comm_size( MPI_COMM_WORLD, &_nbproc ); + MPI_Comm_rank( MPI_COMM_WORLD, &_numproc ); _tior=NULL; } @@ -50,11 +50,11 @@ MPIObject_i::~MPIObject_i() Engines::IORTab* MPIObject_i::tior() { - Engines::IORTab* tior = new Engines::IORTab; + Engines::IORTab_var tior = new Engines::IORTab; tior->length(_tior->length()); for(unsigned int ip=0;iplength();ip++) - (*tior)[ip] = (*_tior)[ip]; - return tior; + tior[ip] = (*_tior)[ip]; + return tior._retn(); }; void MPIObject_i::tior(const Engines::IORTab& ior) @@ -65,23 +65,20 @@ void MPIObject_i::tior(const Engines::IORTab& ior) (*_tior)[ip] = ior[ip]; } -void MPIObject_i::BCastIOR(CORBA::ORB_ptr orb, Engines::MPIObject_var pobj, +void MPIObject_i::BCastIOR(CORBA::ORB_ptr orb, Engines::MPIObject_ptr pobj, bool amiCont) { int err, ip, n; char *ior; MPI_Status status; /* status de reception de message MPI */ - // Conversion IOR vers string - CORBA::String_var sior(orb->object_to_string(pobj)); - if( _numproc == 0 ){ //Allocation du tableau des IOR - Engines::IORTab *iort = new Engines::IORTab; + Engines::IORTab_var iort = new Engines::IORTab; iort->length(_nbproc); - (*iort)[0] = pobj; + iort[0] = pobj; // Process 0 recupere les ior de l'object sur les autres process for(ip=1;ip<_nbproc;ip++){ @@ -91,35 +88,38 @@ void MPIObject_i::BCastIOR(CORBA::ORB_ptr orb, Engines::MPIObject_var pobj, exit(1); } // Allocation de la chaine de longueur n - ior = (char*)calloc(n,sizeof(char)); + ior = new char[n]; err = MPI_Recv(ior,n,MPI_CHAR,ip,2*ip,MPI_COMM_WORLD,&status); if(err){ MESSAGE("[" << _numproc << "] MPI_RECV error"); exit(1); } - (*iort)[ip] = Engines::MPIObject::_narrow(orb->string_to_object(ior)); - free(ior); + iort[ip] = orb->string_to_object(ior); + delete [] ior; } // On donne le tableau des ior a l'objet Corba du process 0 if( amiCont ) - tior(*iort); + tior(*(iort._retn())); else - pobj->tior(*iort); + pobj->tior(*(iort._retn())); } else{ + // Conversion IOR vers string + ior = orb->object_to_string(pobj); + n = strlen(ior) + 1; // On envoie l'IOR au process 0 - n = strlen((char*)sior); err = MPI_Send(&n,1,MPI_INT,0,_numproc,MPI_COMM_WORLD); if(err){ MESSAGE("[" << _numproc << "] MPI_SEND error"); exit(1); } - err = MPI_Send((char*)sior,n,MPI_CHAR,0,2*_numproc,MPI_COMM_WORLD); + err = MPI_Send(ior,n,MPI_CHAR,0,2*_numproc,MPI_COMM_WORLD); if(err){ MESSAGE("[" << _numproc << "] MPI_SEND error"); exit(1); } + CORBA::string_free(ior); } } diff --git a/src/MPIContainer/MPIObject_i.hxx b/src/MPIContainer/MPIObject_i.hxx index e504bb829..d15a1b4d5 100644 --- a/src/MPIContainer/MPIObject_i.hxx +++ b/src/MPIContainer/MPIObject_i.hxx @@ -28,7 +28,7 @@ #define _SALOME_POBJECT_I_H_ #include -#include CORBA_SERVER_HEADER(MPIObject) +#include CORBA_SERVER_HEADER(SALOME_MPIObject) class MPIObject_i: public POA_Engines::MPIObject { @@ -48,7 +48,7 @@ class MPIObject_i: public POA_Engines::MPIObject // IOR des objets paralleles sur tous les process mpi Engines::IORTab* _tior; // Echange des IOR de l'objet entre process - void BCastIOR(CORBA::ORB_ptr orb,Engines::MPIObject_var pobj,bool amiCont); + void BCastIOR(CORBA::ORB_ptr orb,Engines::MPIObject_ptr pobj,bool amiCont); } ; #endif diff --git a/src/MPIContainer/Makefile.in b/src/MPIContainer/Makefile.in index 5576a570a..ae1ab2757 100644 --- a/src/MPIContainer/Makefile.in +++ b/src/MPIContainer/Makefile.in @@ -44,15 +44,19 @@ EXPORT_HEADERS = \ LIB = libSalomeMPIContainer.la LIB_SRC = MPIObject_i.cxx MPIContainer_i.cxx -LIB_SERVER_IDL = TypeData.idl MPIObject.idl MPIContainer.idl +LIB_SERVER_IDL = SALOME_MPIObject.idl SALOME_MPIContainer.idl # Executables targets BIN = SALOME_MPIContainer BIN_SRC = -BIN_SERVER_IDL = TypeData.idl MPIObject.idl MPIContainer.idl +BIN_SERVER_IDL = SALOME_MPIObject.idl SALOME_MPIContainer.idl -CXXFLAGS+=${MPI_INCLUDES} -CXX_DEPEND_FLAG+=${MPI_INCLUDES} -LDFLAGS+= -lSalomeContainer -lSalomeNS -lRegistry -lOpUtil ${MPI_LIBS} +LDFLAGS+= -lSalomeContainer -lSalomeNS -lRegistry -lOpUtil -lSalomeNotification -lSALOMELocalTrace + +ifeq (@WITHMPI@,yes) + CXXFLAGS+=${MPI_INCLUDES} + CXX_DEPEND_FLAG+=${MPI_INCLUDES} + LDFLAGS+= ${MPI_LIBS} +endif @CONCLUDE@ diff --git a/src/MPIContainer/SALOME_MPIContainer.cxx b/src/MPIContainer/SALOME_MPIContainer.cxx index d6e19149e..d6fb4474f 100644 --- a/src/MPIContainer/SALOME_MPIContainer.cxx +++ b/src/MPIContainer/SALOME_MPIContainer.cxx @@ -1,54 +1,31 @@ -// SALOME MPIContainer : implemenation of container based on MPI libraries -// -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, -// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License. -// -// This library 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 -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org -// -// -// -// File : SALOME_MPIContainer.cxx -// Module : SALOME - -using namespace std; #include #include "MPIContainer_i.hxx" +#include "Utils_ORB_INIT.hxx" +#include "Utils_SINGLETON.hxx" #include "utilities.h" -#include "LocalTraceCollector.hxx" #include +using namespace std; int main(int argc, char* argv[]) { - LocalTraceCollector *myThreadTrace = LocalTraceCollector::instance(); int nbproc, numproc; - MPIContainer_i * myContainer; + int flag; + Engines_MPIContainer_i * myContainer=NULL; BEGIN_OF(argv[0]) try { MESSAGE("Connection MPI"); - MPI_Init(&argc,&argv); MPI_Comm_size(MPI_COMM_WORLD,&nbproc); MPI_Comm_rank(MPI_COMM_WORLD,&numproc); - MESSAGE("Initialisation CORBA"); + MESSAGE("[" << numproc << "] Initialisation CORBA"); // Initialise the ORB. - CORBA::ORB_var orb = CORBA::ORB_init(argc, argv); + // CORBA::ORB_var orb = CORBA::ORB_init(argc, argv); + ORB_INIT &init = *SINGLETON_::Instance() ; + ASSERT(SINGLETON_::IsAlreadyExisting()) ; + CORBA::ORB_var &orb = init( argc , argv ) ; // Obtain a reference to the root POA. CORBA::Object_var obj = orb->resolve_initial_references("RootPOA"); @@ -88,37 +65,37 @@ int main(int argc, char* argv[]) containerName = argv[1] ; } - MESSAGE("Chargement container sur proc: " << numproc); - myContainer = new MPIContainer_i(nbproc,numproc,orb,factory_poa, containerName); - MESSAGE("Fin chargement container"); + MESSAGE("[" << numproc << "] Chargement container"); + myContainer = new Engines_MPIContainer_i(nbproc,numproc,orb,factory_poa, containerName,argc,argv); pman->activate(); orb->run(); orb->destroy(); - delete myContainer; - MPI_Finalize(); } - catch(CORBA::SystemException&) { - INFOS("Caught CORBA::SystemException.") + catch(CORBA::SystemException&){ + INFOS("Caught CORBA::SystemException."); } - catch(PortableServer::POA::WrongPolicy&) - { - INFOS("Caught CORBA::WrongPolicyException.") + catch(PortableServer::POA::WrongPolicy&){ + INFOS("Caught CORBA::WrongPolicyException."); } - catch(PortableServer::POA::ServantAlreadyActive&) - { - INFOS("Caught CORBA::ServantAlreadyActiveException") + catch(PortableServer::POA::ServantAlreadyActive&){ + INFOS("Caught CORBA::ServantAlreadyActiveException"); } - catch(CORBA::Exception&) { - INFOS("Caught CORBA::Exception.") + catch(CORBA::Exception&){ + INFOS("Caught CORBA::Exception."); } - catch(...) { - INFOS("Caught unknown exception.") - } + catch(...){ + INFOS("Caught unknown exception."); + } + + if(myContainer) + delete myContainer; + MPI_Initialized(&flag); + if(flag) + MPI_Finalize(); + END_OF(argv[0]); - delete myThreadTrace; - return 0; } diff --git a/src/MPILifeCycleCORBA/SALOME_MPILifeCycleCORBA.cxx b/src/MPILifeCycleCORBA/SALOME_MPILifeCycleCORBA.cxx index cfa9f4c77..9d342ca32 100644 --- a/src/MPILifeCycleCORBA/SALOME_MPILifeCycleCORBA.cxx +++ b/src/MPILifeCycleCORBA/SALOME_MPILifeCycleCORBA.cxx @@ -41,15 +41,15 @@ SALOME_MPILifeCycleCORBA::~SALOME_MPILifeCycleCORBA() } Engines::MPIContainer_var SALOME_MPILifeCycleCORBA::FindOrStartMPIContainer( - const string theComputer , - const string theMPIContainerRoot, + const std::string theComputer , + const std::string theMPIContainerRoot, const int nbproc) { char nbp[1024]; sprintf(nbp,"_%d",nbproc); - string theMPIContainer = theMPIContainerRoot + nbp; - string aComputerContainer = theComputer + "/" + theMPIContainer; + std::string theMPIContainer = theMPIContainerRoot + nbp; + std::string aComputerContainer = theComputer + "/" + theMPIContainer; SCRUTE( aComputerContainer ) ; SCRUTE( theComputer ) ; @@ -72,7 +72,7 @@ Engines::MPIContainer_var SALOME_MPILifeCycleCORBA::FindOrStartMPIContainer( if ( !strcmp( &theMPIContainerRoot.c_str()[len-2] , "Py" ) ) { pyCont = true ; } - string MPIFactoryServer = theComputer ; + std::string MPIFactoryServer = theComputer ; if ( pyCont ) { MPIFactoryServer += "/MPIFactoryServerPy" ; } @@ -85,13 +85,13 @@ Engines::MPIContainer_var SALOME_MPILifeCycleCORBA::FindOrStartMPIContainer( // On n'a pas trouve le container generique: on lance le container demande if ( CORBA::is_nil( aMPIFactoryServer ) ) { // rsh -n ikkyo /export/home/rahuel/SALOME_ROOT/bin/runSession SALOME_Container -ORBInitRef NameService=corbaname::dm2s0017:1515 & - string rsh( "" ) ; + std::string rsh( "" ) ; if ( theComputer!= GetHostname() ) { rsh += "rsh -n " ; rsh += theComputer ; rsh += " " ; } - string path = ComputerPath( theComputer.c_str() ) ; + std::string path = ComputerPath( theComputer.c_str() ) ; SCRUTE( path ) ; // rsh += "runSession " ; if ( pyCont ) { @@ -105,7 +105,7 @@ Engines::MPIContainer_var SALOME_MPILifeCycleCORBA::FindOrStartMPIContainer( rsh += nbp; rsh += theMPIContainer +" -" ; } - string omniORBcfg( getenv( "OMNIORB_CONFIG" ) ) ; + std::string omniORBcfg( getenv( "OMNIORB_CONFIG" ) ) ; ifstream omniORBfile( omniORBcfg.c_str() ) ; char ORBInitRef[12] ; char nameservice[132] ; diff --git a/src/MPILifeCycleCORBA/SALOME_MPILifeCycleCORBA.hxx b/src/MPILifeCycleCORBA/SALOME_MPILifeCycleCORBA.hxx index dfac11034..e560a072e 100644 --- a/src/MPILifeCycleCORBA/SALOME_MPILifeCycleCORBA.hxx +++ b/src/MPILifeCycleCORBA/SALOME_MPILifeCycleCORBA.hxx @@ -36,8 +36,8 @@ protected: Engines::MPIContainer_var _MPIFactoryServer ; private: - Engines::MPIContainer_var FindOrStartMPIContainer(const string theComputer , - const string theMPIContainerRoot, + Engines::MPIContainer_var FindOrStartMPIContainer(const std::string theComputer , + const std::string theMPIContainerRoot, const int nbproc) ; } ; diff --git a/src/MPILifeCycleCORBA/TestMPILifeCycleCORBA.cxx b/src/MPILifeCycleCORBA/TestMPILifeCycleCORBA.cxx index 9e2c5c160..680ba3766 100644 --- a/src/MPILifeCycleCORBA/TestMPILifeCycleCORBA.cxx +++ b/src/MPILifeCycleCORBA/TestMPILifeCycleCORBA.cxx @@ -21,6 +21,7 @@ #include "SALOME_NamingService.hxx" #include "SALOME_MPILifeCycleCORBA.hxx" #include "OpUtil.hxx" +using namespace std; int main (int argc, char * argv[]) { diff --git a/src/MSG2QM/msg2qm.cxx b/src/MSG2QM/msg2qm.cxx index a7838c30d..57dac48d0 100644 --- a/src/MSG2QM/msg2qm.cxx +++ b/src/MSG2QM/msg2qm.cxx @@ -15,7 +15,6 @@ ** *****************************************************************************/ -using namespace std; #include #include #include @@ -23,6 +22,7 @@ using namespace std; #include #include +using namespace std; static QString* defaultScope = 0; diff --git a/src/Makefile.in b/src/Makefile.in index 684d62305..d40b8e22b 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -45,7 +45,7 @@ SUBDIRS = MSG2QM SALOMELocalTrace Logger Utils CASCatch PatchQt \ RegistryDisplay ModuleGenerator SALOME_PYQT Loader Communication ifeq (@mpi_ok@,yes) - SUBDIRS+= MPIContainer + SUBDIRS+= MPIContainer MPILifeCycleCORBA TestMPIContainer endif ifeq (@WITHOPENPBS@,yes) diff --git a/src/ModuleCatalog/SALOME_ModuleCatalog_Handler.cxx b/src/ModuleCatalog/SALOME_ModuleCatalog_Handler.cxx index 19275eec5..0a8f27f4e 100644 --- a/src/ModuleCatalog/SALOME_ModuleCatalog_Handler.cxx +++ b/src/ModuleCatalog/SALOME_ModuleCatalog_Handler.cxx @@ -33,6 +33,7 @@ #include "utilities.h" #include +using namespace std; #ifdef _DEBUG_ static int MYDEBUG = 0; diff --git a/src/NOTIFICATION_SWIG/NOTIFICATION_Swig.cxx b/src/NOTIFICATION_SWIG/NOTIFICATION_Swig.cxx index 6e36d52a9..40bc4a12a 100644 --- a/src/NOTIFICATION_SWIG/NOTIFICATION_Swig.cxx +++ b/src/NOTIFICATION_SWIG/NOTIFICATION_Swig.cxx @@ -25,8 +25,8 @@ // Author : Francis KLOSS // Module : SALOME -using namespace std; #include "NOTIFICATION_Swig.hxx" +using namespace std; // Swig notification supplier // -------------------------- diff --git a/src/NOTIFICATION_SWIG/NOTIFICATION_Swig.hxx b/src/NOTIFICATION_SWIG/NOTIFICATION_Swig.hxx index f2361808c..a56c730c5 100644 --- a/src/NOTIFICATION_SWIG/NOTIFICATION_Swig.hxx +++ b/src/NOTIFICATION_SWIG/NOTIFICATION_Swig.hxx @@ -25,7 +25,6 @@ // Author : Francis KLOSS // Module : SALOME -using namespace std; #include "NOTIFICATION.hxx" class NOTIFICATION_Supplier_Swig { diff --git a/src/NamingService/ServiceUnreachable.cxx b/src/NamingService/ServiceUnreachable.cxx index 4b03e8d16..7fa194f76 100644 --- a/src/NamingService/ServiceUnreachable.cxx +++ b/src/NamingService/ServiceUnreachable.cxx @@ -24,8 +24,8 @@ // File : ServiceUnreachable.cxx // Module : SALOME -using namespace std; #include "ServiceUnreachable.hxx" +using namespace std; ServiceUnreachable::ServiceUnreachable( void ): SALOME_Exception( "ServiceUnreachable" ) { diff --git a/src/Notification/NOTIFICATION.cxx b/src/Notification/NOTIFICATION.cxx index 1058d706e..bbbb92294 100644 --- a/src/Notification/NOTIFICATION.cxx +++ b/src/Notification/NOTIFICATION.cxx @@ -25,12 +25,11 @@ // Author : Laurent DADA / Francis KLOSS // Module : SALOME -using namespace std; #include "NOTIFICATION.hxx" -using namespace std; #include "Utils_ORB_INIT.hxx" #include "Utils_SINGLETON.hxx" +using namespace std; CosNA_EventChannel_ptr NOTIFICATION_channel() { ORB_INIT& init = *SINGLETON_::Instance(); ASSERT(SINGLETON_::IsAlreadyExisting()); diff --git a/src/Notification/NOTIFICATION_Consumer.cxx b/src/Notification/NOTIFICATION_Consumer.cxx index f7bc0d67d..88591375b 100644 --- a/src/Notification/NOTIFICATION_Consumer.cxx +++ b/src/Notification/NOTIFICATION_Consumer.cxx @@ -25,8 +25,8 @@ // Author : Laurent DADA / Francis KLOSS // Module : SALOME -using namespace std; #include "NOTIFICATION.hxx" +using namespace std; NOTIFICATION_Consumer::NOTIFICATION_Consumer(): proxy_supplier(0), diff --git a/src/Notification/NOTIFICATION_Supplier.cxx b/src/Notification/NOTIFICATION_Supplier.cxx index b572539a4..83d3787a6 100644 --- a/src/Notification/NOTIFICATION_Supplier.cxx +++ b/src/Notification/NOTIFICATION_Supplier.cxx @@ -25,8 +25,8 @@ // Author : Laurent DADA / Francis KLOSS // Module : SALOME -using namespace std; #include "NOTIFICATION.hxx" +using namespace std; long NOTIFICATION_Supplier::_stamp = 0; diff --git a/src/OBJECT/SALOME_AISObject.cxx b/src/OBJECT/SALOME_AISObject.cxx index 2d34b31a2..46abdd1d6 100644 --- a/src/OBJECT/SALOME_AISObject.cxx +++ b/src/OBJECT/SALOME_AISObject.cxx @@ -26,5 +26,5 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOME_AISObject.ixx" +using namespace std; diff --git a/src/OBJECT/SALOME_AISShape.cxx b/src/OBJECT/SALOME_AISShape.cxx index 117738ffa..b439aef2b 100644 --- a/src/OBJECT/SALOME_AISShape.cxx +++ b/src/OBJECT/SALOME_AISShape.cxx @@ -26,8 +26,8 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOME_AISShape.ixx" +using namespace std; SALOME_AISShape::SALOME_AISShape(const TopoDS_Shape& shape): AIS_Shape(shape) { } diff --git a/src/OBJECT/SALOME_InteractiveObject.cxx b/src/OBJECT/SALOME_InteractiveObject.cxx index 4f07e3b88..4da402dc6 100644 --- a/src/OBJECT/SALOME_InteractiveObject.cxx +++ b/src/OBJECT/SALOME_InteractiveObject.cxx @@ -26,13 +26,13 @@ // Module : SALOME // $Header$ -using namespace std; /*! \class SALOME_InteractiveObject SALOME_InteractiveObject.hxx \brief ... */ #include "SALOME_InteractiveObject.ixx" +using namespace std; SALOME_InteractiveObject::SALOME_InteractiveObject() { diff --git a/src/OCCViewer/OCCViewer.cxx b/src/OCCViewer/OCCViewer.cxx index d98bb2b1f..70a92624c 100644 --- a/src/OCCViewer/OCCViewer.cxx +++ b/src/OCCViewer/OCCViewer.cxx @@ -26,9 +26,9 @@ // Module : SALOME // $Header$ -using namespace std; #include "OCCViewer.h" #include "OCCViewer_ViewFrame.h" +using namespace std; QAD_ViewFrame* OCCViewer::createView(QAD_RightFrame* parent) { diff --git a/src/OCCViewer/OCCViewer_AISSelector.cxx b/src/OCCViewer/OCCViewer_AISSelector.cxx index 826b8d285..a5f5a38a0 100644 --- a/src/OCCViewer/OCCViewer_AISSelector.cxx +++ b/src/OCCViewer/OCCViewer_AISSelector.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; /*! \class OCCViewer_AISSelector OCCViewer_AISSelector.h \brief Selector for AIS interactive context. @@ -35,6 +34,7 @@ using namespace std; */ #include "OCCViewer_AISSelector.h" +using namespace std; /*! Constructor diff --git a/src/OCCViewer/OCCViewer_Prs.cxx b/src/OCCViewer/OCCViewer_Prs.cxx index 133bd4b71..35cd69f32 100644 --- a/src/OCCViewer/OCCViewer_Prs.cxx +++ b/src/OCCViewer/OCCViewer_Prs.cxx @@ -27,6 +27,7 @@ // $Header$ #include "OCCViewer_Prs.h" +using namespace std; //========================================================== /*! diff --git a/src/OCCViewer/OCCViewer_VService.cxx b/src/OCCViewer/OCCViewer_VService.cxx index e0ed072a6..eca0fbbb8 100644 --- a/src/OCCViewer/OCCViewer_VService.cxx +++ b/src/OCCViewer/OCCViewer_VService.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "OCCViewer_VService.h" // Open CASCADE Includes @@ -51,6 +50,7 @@ using namespace std; #include #include #endif +using namespace std; // For 2d #define LOPTIM diff --git a/src/OCCViewer/OCCViewer_ViewFrame.cxx b/src/OCCViewer/OCCViewer_ViewFrame.cxx index b43955be1..47e4def85 100644 --- a/src/OCCViewer/OCCViewer_ViewFrame.cxx +++ b/src/OCCViewer/OCCViewer_ViewFrame.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "OCCViewer_ViewFrame.h" #include "OCCViewer_Viewer3d.h" #include "OCCViewer_ViewPort.h" @@ -53,6 +52,7 @@ using namespace std; #include #include #include +using namespace std; /*! Constructor diff --git a/src/OCCViewer/OCCViewer_ViewPort3d.cxx b/src/OCCViewer/OCCViewer_ViewPort3d.cxx index 1782f8785..9ea1b6828 100644 --- a/src/OCCViewer/OCCViewer_ViewPort3d.cxx +++ b/src/OCCViewer/OCCViewer_ViewPort3d.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "OCCViewer_ViewPort3d.h" #include "QAD.h" @@ -46,6 +45,7 @@ using namespace std; #if !defined WNT #include #endif +using namespace std; /*! Constructor diff --git a/src/OCCViewer/OCCViewer_Viewer3d.cxx b/src/OCCViewer/OCCViewer_Viewer3d.cxx index cd97a6e90..fae548a60 100644 --- a/src/OCCViewer/OCCViewer_Viewer3d.cxx +++ b/src/OCCViewer/OCCViewer_Viewer3d.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; /*! \class OCCViewer_Viewer3d OCCViewer_Viewer3d.h \brief Open CASCADE Viewer 3D with viewport 3D and selection. @@ -62,6 +61,7 @@ using namespace std; #include #include #include +using namespace std; DEFINE_BASECOLLECTION( OCCViewer_CollectionOfIndexedMapOfShapes, TopTools_IndexedMapOfShape ) DEFINE_DATAMAP( OCCViewer_MapOfIOIndexedMapOfShape, OCCViewer_CollectionOfIndexedMapOfShapes, Handle_SALOME_InteractiveObject, TopTools_IndexedMapOfShape) diff --git a/src/PatchQt/qsplitterP.cxx b/src/PatchQt/qsplitterP.cxx index fd2a7fc5c..cbe25a691 100644 --- a/src/PatchQt/qsplitterP.cxx +++ b/src/PatchQt/qsplitterP.cxx @@ -41,7 +41,6 @@ ** **********************************************************************/ -using namespace std; #include "qsplitterP.h" #ifndef QT_NO_COMPLEXWIDGETS @@ -61,6 +60,7 @@ using namespace std; #include #include //sendPostedEvents +using namespace std; #define SPLITTER_ICON_WIDTH 10 #define SPLITTER_ICON_HEIGHT 12 diff --git a/src/PatchQt/qworkspaceP.cxx b/src/PatchQt/qworkspaceP.cxx index f73e73927..1a959ae47 100644 --- a/src/PatchQt/qworkspaceP.cxx +++ b/src/PatchQt/qworkspaceP.cxx @@ -41,7 +41,6 @@ ** **********************************************************************/ -using namespace std; #include "qworkspaceP.h" #include @@ -73,6 +72,7 @@ using namespace std; #include #include +using namespace std; #define BUTTON_WIDTH 16 #define BUTTON_HEIGHT 14 diff --git a/src/Plot2d/Plot2d.cxx b/src/Plot2d/Plot2d.cxx index 9aa2f06d3..3034de6e6 100644 --- a/src/Plot2d/Plot2d.cxx +++ b/src/Plot2d/Plot2d.cxx @@ -9,6 +9,7 @@ #include "Plot2d.h" #include "Plot2d_ViewFrame.h" +using namespace std; QAD_ViewFrame* Plot2d::createView(QAD_RightFrame* parent) { diff --git a/src/Plot2d/Plot2d_Curve.cxx b/src/Plot2d/Plot2d_Curve.cxx index 8d15c56ae..e32f477e0 100644 --- a/src/Plot2d/Plot2d_Curve.cxx +++ b/src/Plot2d/Plot2d_Curve.cxx @@ -7,9 +7,9 @@ // Module : SALOME // $Header$ -using namespace std; #include "Plot2d_Curve.h" #include "utilities.h" +using namespace std; /*! Constructor diff --git a/src/Plot2d/Plot2d_CurveContainer.cxx b/src/Plot2d/Plot2d_CurveContainer.cxx index b5267b086..895328d59 100644 --- a/src/Plot2d/Plot2d_CurveContainer.cxx +++ b/src/Plot2d/Plot2d_CurveContainer.cxx @@ -7,8 +7,8 @@ // Module : SALOME // $Header$ -using namespace std; #include "Plot2d_CurveContainer.h" +using namespace std; /*! Constructor diff --git a/src/Plot2d/Plot2d_FitDataDlg.cxx b/src/Plot2d/Plot2d_FitDataDlg.cxx index 07c77fca8..c9fde0205 100644 --- a/src/Plot2d/Plot2d_FitDataDlg.cxx +++ b/src/Plot2d/Plot2d_FitDataDlg.cxx @@ -14,6 +14,7 @@ #include "QAD_Tools.h" #include "QAD_Application.h" #include "QAD_Desktop.h" +using namespace std; #define SPACING_SIZE 6 #define MARGIN_SIZE 11 diff --git a/src/Plot2d/Plot2d_Prs.cxx b/src/Plot2d/Plot2d_Prs.cxx index 2db19dfc4..8f3ec0687 100644 --- a/src/Plot2d/Plot2d_Prs.cxx +++ b/src/Plot2d/Plot2d_Prs.cxx @@ -27,6 +27,7 @@ // $Header$ #include "Plot2d_Prs.h" +using namespace std; //========================================================== /*! diff --git a/src/Plot2d/Plot2d_SetupViewDlg.cxx b/src/Plot2d/Plot2d_SetupViewDlg.cxx index bc80cd164..c7e157eec 100644 --- a/src/Plot2d/Plot2d_SetupViewDlg.cxx +++ b/src/Plot2d/Plot2d_SetupViewDlg.cxx @@ -20,6 +20,7 @@ #include #include #include +using namespace std; #define MARGIN_SIZE 11 #define SPACING_SIZE 6 diff --git a/src/Plot2d/Plot2d_ViewFrame.cxx b/src/Plot2d/Plot2d_ViewFrame.cxx index 53a7b3d92..49f5cbdd3 100644 --- a/src/Plot2d/Plot2d_ViewFrame.cxx +++ b/src/Plot2d/Plot2d_ViewFrame.cxx @@ -36,6 +36,7 @@ #include #include CORBA_SERVER_HEADER(SALOMEDS) #include CORBA_SERVER_HEADER(SALOMEDS_Attributes) +using namespace std; #define DEFAULT_LINE_WIDTH 0 // (default) line width #define DEFAULT_MARKER_SIZE 9 // default marker size diff --git a/src/Registry/RegistryConnexion.cxx b/src/Registry/RegistryConnexion.cxx index e11f5a221..bf33e0882 100644 --- a/src/Registry/RegistryConnexion.cxx +++ b/src/Registry/RegistryConnexion.cxx @@ -26,8 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; -using namespace std; # include "Utils_ORB_INIT.hxx" # include "RegistryConnexion.hxx" # include "SALOME_NamingService.hxx" @@ -41,6 +39,7 @@ extern "C" { # include } +using namespace std; Registry::Components_var Connexion( int argc , char **argv , const char *ptrSessionName ) throw( CommException ) diff --git a/src/Registry/RegistryConnexion.hxx b/src/Registry/RegistryConnexion.hxx index 6f2509258..5b945cd41 100644 --- a/src/Registry/RegistryConnexion.hxx +++ b/src/Registry/RegistryConnexion.hxx @@ -42,8 +42,8 @@ class RegistryConnexion protected : const char* _Ior ; // engine ior Registry::Components_var _VarComponents ; // RegistryService reference - string _SessionName ; - string _Name ; // code name + std::string _SessionName ; + std::string _Name ; // code name int _Id ; // code identity returned by RegistryService void add( const char *aName ); void remove( void ); diff --git a/src/Registry/RegistryService.cxx b/src/Registry/RegistryService.cxx index 94dfa3034..8aed1d77f 100644 --- a/src/Registry/RegistryService.cxx +++ b/src/Registry/RegistryService.cxx @@ -26,8 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; -using namespace std; # include "RegistryService.hxx" # include "OpUtil.hxx" # include "utilities.h" @@ -38,6 +36,7 @@ extern "C" } #include +using namespace std; /* ------------------------------*/ /* Constructeurs et Destructeurs */ diff --git a/src/Registry/RegistryService.hxx b/src/Registry/RegistryService.hxx index 3c26d92b7..63f7d57e4 100644 --- a/src/Registry/RegistryService.hxx +++ b/src/Registry/RegistryService.hxx @@ -34,7 +34,6 @@ # include -using namespace std; class RegistryService : public POA_Registry::Components //, public PortableServer::RefCountServantBase { @@ -88,10 +87,10 @@ protected : const char *_SessionName ; int _Compteur ; - map _reg ; - map _fin ; + std::map _reg ; + std::map _fin ; - Registry::AllInfos* makeseq(map &mymap ); + Registry::AllInfos* makeseq(std::map &mymap ); } ; diff --git a/src/RegistryDisplay/HelpWindow.cxx b/src/RegistryDisplay/HelpWindow.cxx index 3d8b682cc..40889fe28 100644 --- a/src/RegistryDisplay/HelpWindow.cxx +++ b/src/RegistryDisplay/HelpWindow.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; # include "HelpWindow.hxx" # include "utilities.h" @@ -34,6 +33,7 @@ using namespace std; # include # include # include +using namespace std; HelpWindow::HelpWindow(QWidget* parent, const char* name ) : QMainWindow( parent, name, WType_TopLevel | WDestructiveClose ) diff --git a/src/RegistryDisplay/IntervalWindow.cxx b/src/RegistryDisplay/IntervalWindow.cxx index 9f1a5d212..239de1fe0 100644 --- a/src/RegistryDisplay/IntervalWindow.cxx +++ b/src/RegistryDisplay/IntervalWindow.cxx @@ -15,6 +15,7 @@ #include #include # include "utilities.h" +using namespace std; #define MARGIN_SIZE 11 #define SPACING_SIZE 6 diff --git a/src/RegistryDisplay/IntervalWindow.hxx b/src/RegistryDisplay/IntervalWindow.hxx index c5a2b0f79..9e732f1b2 100644 --- a/src/RegistryDisplay/IntervalWindow.hxx +++ b/src/RegistryDisplay/IntervalWindow.hxx @@ -16,7 +16,6 @@ # include # include -using namespace std; class IntervalWindow : public QDialog { diff --git a/src/RegistryDisplay/RegWidget.cxx b/src/RegistryDisplay/RegWidget.cxx index d78d5150f..a2cb69e3b 100644 --- a/src/RegistryDisplay/RegWidget.cxx +++ b/src/RegistryDisplay/RegWidget.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; # include # include # include @@ -49,6 +48,7 @@ using namespace std; # include "RegWidget.hxx" # include "HelpWindow.hxx" # include "IntervalWindow.hxx" +using namespace std; typedef int PIXELS; RegWidget* RegWidget::myRegWidgetPtr = 0; diff --git a/src/RegistryDisplay/RegWidgetFactory.cxx b/src/RegistryDisplay/RegWidgetFactory.cxx index 341e60d54..ffef14c4d 100644 --- a/src/RegistryDisplay/RegWidgetFactory.cxx +++ b/src/RegistryDisplay/RegWidgetFactory.cxx @@ -26,9 +26,9 @@ // Module : SALOME // $Header$ -using namespace std; # include "RegWidget.hxx" # include "utilities.h" +using namespace std; extern "C" { diff --git a/src/RessourcesCatalog/SALOME_RessourcesCatalog_Client.cxx b/src/RessourcesCatalog/SALOME_RessourcesCatalog_Client.cxx index c6a524cde..d368d878f 100644 --- a/src/RessourcesCatalog/SALOME_RessourcesCatalog_Client.cxx +++ b/src/RessourcesCatalog/SALOME_RessourcesCatalog_Client.cxx @@ -24,7 +24,6 @@ // File : SALOME_RessourcesCatalog_Client.cxx // Module : SALOME -using namespace std; /* $Header$ */ #include @@ -33,6 +32,7 @@ using namespace std; #include CORBA_SERVER_HEADER(SALOME_RessourcesCatalog) #include #include "utilities.h" +using namespace std; int main(int argc,char **argv) { diff --git a/src/RessourcesCatalog/SALOME_RessourcesCatalog_impl.cxx b/src/RessourcesCatalog/SALOME_RessourcesCatalog_impl.cxx index cc819e495..5a1d7bed4 100644 --- a/src/RessourcesCatalog/SALOME_RessourcesCatalog_impl.cxx +++ b/src/RessourcesCatalog/SALOME_RessourcesCatalog_impl.cxx @@ -25,11 +25,11 @@ // Author : Estelle Deville // Module : SALOME -using namespace std; #include "SALOME_RessourcesCatalog_impl.hxx" #include #include "Utils_ExceptHandlers.hxx" +using namespace std; UNEXPECT_CATCH(RC_NotFound, SALOME_RessourcesCatalog::NotFound); //---------------------------------------------------------------------- diff --git a/src/SALOMEDS/SALOMEDS_AttLong_i.cxx b/src/SALOMEDS/SALOMEDS_AttLong_i.cxx index 7bb09d0a9..463f9594b 100644 --- a/src/SALOMEDS/SALOMEDS_AttLong_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttLong_i.cxx @@ -26,11 +26,11 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttLong_i.hxx" #include "utilities.h" #include #include +using namespace std; //============================================================================ /*! Function : Set diff --git a/src/SALOMEDS/SALOMEDS_AttReal_i.cxx b/src/SALOMEDS/SALOMEDS_AttReal_i.cxx index e14480546..7140ec6b6 100644 --- a/src/SALOMEDS/SALOMEDS_AttReal_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttReal_i.cxx @@ -26,12 +26,12 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttReal_i.hxx" #include "utilities.h" #include #include #include +using namespace std; //============================================================================ /*! Function : Set diff --git a/src/SALOMEDS/SALOMEDS_AttributeComment_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeComment_i.cxx index 3bf3299f2..6563d8fd4 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeComment_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeComment_i.cxx @@ -26,11 +26,11 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributeComment_i.hxx" #include #include "SALOMEDS_SObject_i.hxx" +using namespace std; char* SALOMEDS_AttributeComment_i::Value() { diff --git a/src/SALOMEDS/SALOMEDS_AttributeDrawable_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeDrawable_i.cxx index 516443558..dc23dcd37 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeDrawable_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeDrawable_i.cxx @@ -26,9 +26,9 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributeDrawable_i.hxx" #include "SALOMEDS_SObject_i.hxx" +using namespace std; CORBA::Boolean SALOMEDS_AttributeDrawable_i::IsDrawable() { return (Handle(SALOMEDS_DrawableAttribute)::DownCast(_myAttr)->Get() == 1); diff --git a/src/SALOMEDS/SALOMEDS_AttributeExpandable_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeExpandable_i.cxx index 01679d0ca..ddff1d495 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeExpandable_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeExpandable_i.cxx @@ -26,9 +26,9 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributeExpandable_i.hxx" #include "SALOMEDS_SObject_i.hxx" +using namespace std; CORBA::Boolean SALOMEDS_AttributeExpandable_i::IsExpandable() { return (Handle(SALOMEDS_ExpandableAttribute)::DownCast(_myAttr)->Get() == 1); diff --git a/src/SALOMEDS/SALOMEDS_AttributeExternalFileDef_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeExternalFileDef_i.cxx index 94e2a313d..a6c424c17 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeExternalFileDef_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeExternalFileDef_i.cxx @@ -26,11 +26,11 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributeExternalFileDef_i.hxx" #include #include "SALOMEDS_SObject_i.hxx" +using namespace std; char* SALOMEDS_AttributeExternalFileDef_i::Value() { diff --git a/src/SALOMEDS/SALOMEDS_AttributeFileType_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeFileType_i.cxx index d40a53f43..9411fbb67 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeFileType_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeFileType_i.cxx @@ -26,11 +26,11 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributeFileType_i.hxx" #include #include "SALOMEDS_SObject_i.hxx" +using namespace std; char* SALOMEDS_AttributeFileType_i::Value() { diff --git a/src/SALOMEDS/SALOMEDS_AttributeIOR_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeIOR_i.cxx index b1ec78bf0..6cf5e3374 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeIOR_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeIOR_i.cxx @@ -26,13 +26,13 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributeIOR_i.hxx" #include #include "SALOMEDS_SObject_i.hxx" #include "SALOMEDS_Study_i.hxx" +using namespace std; char* SALOMEDS_AttributeIOR_i::Value() { diff --git a/src/SALOMEDS/SALOMEDS_AttributeInteger_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeInteger_i.cxx index 8d3484709..8245e3723 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeInteger_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeInteger_i.cxx @@ -26,9 +26,9 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributeInteger_i.hxx" #include "SALOMEDS_SObject_i.hxx" +using namespace std; CORBA::Long SALOMEDS_AttributeInteger_i::Value() { diff --git a/src/SALOMEDS/SALOMEDS_AttributeLocalID_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeLocalID_i.cxx index d55ea0d99..b6aac2280 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeLocalID_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeLocalID_i.cxx @@ -26,9 +26,9 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributeLocalID_i.hxx" #include "SALOMEDS_SObject_i.hxx" +using namespace std; CORBA::Long SALOMEDS_AttributeLocalID_i::Value() { return Handle(SALOMEDS_LocalIDAttribute)::DownCast(_myAttr)->Get(); diff --git a/src/SALOMEDS/SALOMEDS_AttributeName_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeName_i.cxx index 3dafade54..bc0032478 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeName_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeName_i.cxx @@ -26,10 +26,10 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributeName_i.hxx" #include #include "SALOMEDS_SObject_i.hxx" +using namespace std; char* SALOMEDS_AttributeName_i::Value() { TCollection_ExtendedString S = Handle(TDataStd_Name)::DownCast(_myAttr)->Get(); diff --git a/src/SALOMEDS/SALOMEDS_AttributeOpened_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeOpened_i.cxx index 1c5808a59..842d1ce1d 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeOpened_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeOpened_i.cxx @@ -26,9 +26,9 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributeOpened_i.hxx" #include "SALOMEDS_SObject_i.hxx" +using namespace std; CORBA::Boolean SALOMEDS_AttributeOpened_i::IsOpened() { return (Handle(SALOMEDS_OpenedAttribute)::DownCast(_myAttr)->Get() == 1); diff --git a/src/SALOMEDS/SALOMEDS_AttributePersistentRef_i.cxx b/src/SALOMEDS/SALOMEDS_AttributePersistentRef_i.cxx index c8e72e102..c550587ae 100644 --- a/src/SALOMEDS/SALOMEDS_AttributePersistentRef_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributePersistentRef_i.cxx @@ -26,10 +26,10 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributePersistentRef_i.hxx" #include #include "SALOMEDS_SObject_i.hxx" +using namespace std; char* SALOMEDS_AttributePersistentRef_i::Value() { diff --git a/src/SALOMEDS/SALOMEDS_AttributePixMap_i.cxx b/src/SALOMEDS/SALOMEDS_AttributePixMap_i.cxx index a34de4967..140d0ea48 100644 --- a/src/SALOMEDS/SALOMEDS_AttributePixMap_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributePixMap_i.cxx @@ -26,10 +26,10 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributePixMap_i.hxx" #include "SALOMEDS_SObject_i.hxx" #include +using namespace std; CORBA::Boolean SALOMEDS_AttributePixMap_i::HasPixMap() { TCollection_ExtendedString S = Handle(SALOMEDS_PixMapAttribute)::DownCast(_myAttr)->Get(); diff --git a/src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx b/src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx index dde8e6093..c3be0fedc 100644 --- a/src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx @@ -9,11 +9,11 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributePythonObject_i.hxx" #include #include #include "SALOMEDS_SObject_i.hxx" +using namespace std; void SALOMEDS_AttributePythonObject_i::SetObject(const char* theSequence, CORBA::Boolean IsScript) { CheckLocked(); diff --git a/src/SALOMEDS/SALOMEDS_AttributeSelectable_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeSelectable_i.cxx index c18334aea..aa41a7281 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeSelectable_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeSelectable_i.cxx @@ -26,9 +26,9 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributeSelectable_i.hxx" #include "SALOMEDS_SObject_i.hxx" +using namespace std; CORBA::Boolean SALOMEDS_AttributeSelectable_i::IsSelectable() { return (Handle(SALOMEDS_SelectableAttribute)::DownCast(_myAttr)->Get() == 1); diff --git a/src/SALOMEDS/SALOMEDS_AttributeSequenceOfInteger_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeSequenceOfInteger_i.cxx index 28748f753..6f202da14 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeSequenceOfInteger_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeSequenceOfInteger_i.cxx @@ -26,10 +26,10 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributeSequenceOfInteger_i.hxx" #include "SALOMEDS_SObject_i.hxx" #include +using namespace std; void SALOMEDS_AttributeSequenceOfInteger_i::Assign(const SALOMEDS::LongSeq& other) diff --git a/src/SALOMEDS/SALOMEDS_AttributeSequenceOfReal_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeSequenceOfReal_i.cxx index a88637f6a..a3fe11e24 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeSequenceOfReal_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeSequenceOfReal_i.cxx @@ -26,10 +26,10 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributeSequenceOfReal_i.hxx" #include "SALOMEDS_SObject_i.hxx" #include +using namespace std; void SALOMEDS_AttributeSequenceOfReal_i::Assign(const SALOMEDS::DoubleSeq& other) { diff --git a/src/SALOMEDS/SALOMEDS_AttributeStudyProperties_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeStudyProperties_i.cxx index 8444beca9..1e87e8428 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeStudyProperties_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeStudyProperties_i.cxx @@ -9,11 +9,11 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributeStudyProperties_i.hxx" #include "SALOMEDS_SObject_i.hxx" #include #include +using namespace std; #define CREATION_MODE_NOTDEFINED 0 #define CREATION_MODE_SCRATCH 1 diff --git a/src/SALOMEDS/SALOMEDS_AttributeTableOfInteger_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeTableOfInteger_i.cxx index df037e525..716a49139 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeTableOfInteger_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeTableOfInteger_i.cxx @@ -9,7 +9,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributeTableOfInteger_i.hxx" #include "SALOMEDS_SObject_i.hxx" #include @@ -20,6 +19,7 @@ using namespace std; #include #include #include +using namespace std; #define SEPARATOR '\1' diff --git a/src/SALOMEDS/SALOMEDS_AttributeTableOfReal_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeTableOfReal_i.cxx index cb06a664f..7308441ae 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeTableOfReal_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeTableOfReal_i.cxx @@ -9,7 +9,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributeTableOfReal_i.hxx" #include "SALOMEDS_SObject_i.hxx" #include @@ -20,6 +19,7 @@ using namespace std; #include #include "Utils_ExceptHandlers.hxx" +using namespace std; UNEXPECT_CATCH(ATR_IncorrectIndex, SALOMEDS::AttributeTableOfReal::IncorrectIndex); UNEXPECT_CATCH(ATR_IncorrectArgumentLength, SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength); diff --git a/src/SALOMEDS/SALOMEDS_AttributeTableOfString_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeTableOfString_i.cxx index b77322d31..2f5a95796 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeTableOfString_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeTableOfString_i.cxx @@ -8,7 +8,6 @@ // Author : Sergey Ruin // Module : SALOME -using namespace std; #include #include @@ -23,6 +22,7 @@ using namespace std; #include #include "Utils_ExceptHandlers.hxx" +using namespace std; UNEXPECT_CATCH(ATS_IncorrectIndex, SALOMEDS::AttributeTableOfString::IncorrectIndex); UNEXPECT_CATCH(ATS_IncorrectArgumentLength, SALOMEDS::AttributeTableOfString::IncorrectArgumentLength); diff --git a/src/SALOMEDS/SALOMEDS_AttributeTarget_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeTarget_i.cxx index 1d14121c1..a70357e46 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeTarget_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeTarget_i.cxx @@ -26,11 +26,11 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributeTarget_i.hxx" #include "SALOMEDS_SObject_i.hxx" #include #include +using namespace std; void SALOMEDS_AttributeTarget_i::Add(SALOMEDS::SObject_ptr anObject) { TDF_Label aLabel; diff --git a/src/SALOMEDS/SALOMEDS_AttributeTextColor_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeTextColor_i.cxx index cf63ff0d9..f1c5b65ef 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeTextColor_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeTextColor_i.cxx @@ -26,10 +26,10 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributeTextColor_i.hxx" #include "SALOMEDS_SObject_i.hxx" #include +using namespace std; SALOMEDS::Color SALOMEDS_AttributeTextColor_i::TextColor() { SALOMEDS::Color TextColor; diff --git a/src/SALOMEDS/SALOMEDS_AttributeTextHighlightColor_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeTextHighlightColor_i.cxx index 0995ac90a..f50028358 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeTextHighlightColor_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeTextHighlightColor_i.cxx @@ -26,10 +26,10 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributeTextHighlightColor_i.hxx" #include "SALOMEDS_SObject_i.hxx" #include +using namespace std; SALOMEDS::Color SALOMEDS_AttributeTextHighlightColor_i::TextHighlightColor() { SALOMEDS::Color TextHighlightColor; diff --git a/src/SALOMEDS/SALOMEDS_AttributeTreeNode_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeTreeNode_i.cxx index e37bd2a9b..196d54b06 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeTreeNode_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeTreeNode_i.cxx @@ -26,12 +26,12 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributeTreeNode_i.hxx" #include "SALOMEDS_SObject_i.hxx" #include "utilities.h" #include #include +using namespace std; static Handle(TDataStd_TreeNode) GetNode(SALOMEDS::AttributeTreeNode_ptr value, const Handle(TDataStd_TreeNode)& aNode) { diff --git a/src/SALOMEDS/SALOMEDS_AttributeUserID_i.cxx b/src/SALOMEDS/SALOMEDS_AttributeUserID_i.cxx index b7fa64a41..5c8524045 100644 --- a/src/SALOMEDS/SALOMEDS_AttributeUserID_i.cxx +++ b/src/SALOMEDS/SALOMEDS_AttributeUserID_i.cxx @@ -26,10 +26,10 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_AttributeUserID_i.hxx" #include #include "SALOMEDS_SObject_i.hxx" +using namespace std; char* SALOMEDS_AttributeUserID_i::Value() { char aGUID[40]; diff --git a/src/SALOMEDS/SALOMEDS_BasicAttributeFactory.cxx b/src/SALOMEDS/SALOMEDS_BasicAttributeFactory.cxx index 707c40e10..666958247 100644 --- a/src/SALOMEDS/SALOMEDS_BasicAttributeFactory.cxx +++ b/src/SALOMEDS/SALOMEDS_BasicAttributeFactory.cxx @@ -26,9 +26,9 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_BasicAttributeFactory.hxx" #include "utilities.h" +using namespace std; //============================================================================ /*! Function : Create diff --git a/src/SALOMEDS/SALOMEDS_BasicAttribute_i.cxx b/src/SALOMEDS/SALOMEDS_BasicAttribute_i.cxx index cedaec93a..5022f049c 100644 --- a/src/SALOMEDS/SALOMEDS_BasicAttribute_i.cxx +++ b/src/SALOMEDS/SALOMEDS_BasicAttribute_i.cxx @@ -26,8 +26,8 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_BasicAttribute_i.hxx" +using namespace std; //============================================================================ /*! Function : SetLabel diff --git a/src/SALOMEDS/SALOMEDS_ChildIterator_i.cxx b/src/SALOMEDS/SALOMEDS_ChildIterator_i.cxx index 947579721..ed181e31f 100644 --- a/src/SALOMEDS/SALOMEDS_ChildIterator_i.cxx +++ b/src/SALOMEDS/SALOMEDS_ChildIterator_i.cxx @@ -26,10 +26,10 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_ChildIterator_i.hxx" #include "SALOMEDS_SObject_i.hxx" #include "utilities.h" +using namespace std; diff --git a/src/SALOMEDS/SALOMEDS_DataMapIteratorOfDataMapOfIntegerString_0.cxx b/src/SALOMEDS/SALOMEDS_DataMapIteratorOfDataMapOfIntegerString_0.cxx index 93812ac4e..e564a093c 100644 --- a/src/SALOMEDS/SALOMEDS_DataMapIteratorOfDataMapOfIntegerString_0.cxx +++ b/src/SALOMEDS/SALOMEDS_DataMapIteratorOfDataMapOfIntegerString_0.cxx @@ -25,6 +25,7 @@ #ifndef _SALOMEDS_DataMapNodeOfDataMapOfIntegerString_HeaderFile #include #endif +using namespace std; #define TheKey Standard_Real diff --git a/src/SALOMEDS/SALOMEDS_DataMapIteratorOfDataMapStringLabel_0.cxx b/src/SALOMEDS/SALOMEDS_DataMapIteratorOfDataMapStringLabel_0.cxx index 1473d66c5..b261e4409 100644 --- a/src/SALOMEDS/SALOMEDS_DataMapIteratorOfDataMapStringLabel_0.cxx +++ b/src/SALOMEDS/SALOMEDS_DataMapIteratorOfDataMapStringLabel_0.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_DataMapIteratorOfDataMapStringLabel.hxx" #ifndef _Standard_NoSuchObject_HeaderFile @@ -44,7 +43,8 @@ using namespace std; #ifndef _SALOMEDS_DataMapNodeOfDataMapStringLabel_HeaderFile #include "SALOMEDS_DataMapNodeOfDataMapStringLabel.hxx" #endif - + using namespace std; + #define TheKey TCollection_ExtendedString #define TheKey_hxx diff --git a/src/SALOMEDS/SALOMEDS_DataMapNodeOfDataMapOfIntegerString_0.cxx b/src/SALOMEDS/SALOMEDS_DataMapNodeOfDataMapOfIntegerString_0.cxx index c40761b05..737d4614a 100644 --- a/src/SALOMEDS/SALOMEDS_DataMapNodeOfDataMapOfIntegerString_0.cxx +++ b/src/SALOMEDS/SALOMEDS_DataMapNodeOfDataMapOfIntegerString_0.cxx @@ -26,6 +26,7 @@ #ifndef _SALOMEDS_DataMapIteratorOfDataMapOfIntegerString_HeaderFile #include #endif +using namespace std; SALOMEDS_DataMapNodeOfDataMapOfIntegerString::~SALOMEDS_DataMapNodeOfDataMapOfIntegerString() {} diff --git a/src/SALOMEDS/SALOMEDS_DataMapNodeOfDataMapStringLabel_0.cxx b/src/SALOMEDS/SALOMEDS_DataMapNodeOfDataMapStringLabel_0.cxx index 401a2b77e..ea3912899 100644 --- a/src/SALOMEDS/SALOMEDS_DataMapNodeOfDataMapStringLabel_0.cxx +++ b/src/SALOMEDS/SALOMEDS_DataMapNodeOfDataMapStringLabel_0.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_DataMapNodeOfDataMapStringLabel.hxx" #ifndef _Standard_TypeMismatch_HeaderFile @@ -45,6 +44,7 @@ using namespace std; #ifndef _SALOMEDS_DataMapIteratorOfDataMapStringLabel_HeaderFile #include "SALOMEDS_DataMapIteratorOfDataMapStringLabel.hxx" #endif +using namespace std; SALOMEDS_DataMapNodeOfDataMapStringLabel::~SALOMEDS_DataMapNodeOfDataMapStringLabel() {} diff --git a/src/SALOMEDS/SALOMEDS_DataMapOfIntegerString_0.cxx b/src/SALOMEDS/SALOMEDS_DataMapOfIntegerString_0.cxx index b14e2d897..652532351 100644 --- a/src/SALOMEDS/SALOMEDS_DataMapOfIntegerString_0.cxx +++ b/src/SALOMEDS/SALOMEDS_DataMapOfIntegerString_0.cxx @@ -28,7 +28,8 @@ #ifndef _SALOMEDS_DataMapIteratorOfDataMapOfIntegerString_HeaderFile #include #endif - + using namespace std; + #define TheKey Standard_Real #define TheKey_hxx diff --git a/src/SALOMEDS/SALOMEDS_DataMapStringLabel_0.cxx b/src/SALOMEDS/SALOMEDS_DataMapStringLabel_0.cxx index 76dab0d3b..c5976f385 100644 --- a/src/SALOMEDS/SALOMEDS_DataMapStringLabel_0.cxx +++ b/src/SALOMEDS/SALOMEDS_DataMapStringLabel_0.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_DataMapStringLabel.hxx" #ifndef _Standard_DomainError_HeaderFile @@ -47,7 +46,8 @@ using namespace std; #ifndef _SALOMEDS_DataMapIteratorOfDataMapStringLabel_HeaderFile #include "SALOMEDS_DataMapIteratorOfDataMapStringLabel.hxx" #endif - + using namespace std; + #define TheKey TCollection_ExtendedString #define TheKey_hxx diff --git a/src/SALOMEDS/SALOMEDS_DrawableAttribute.cxx b/src/SALOMEDS/SALOMEDS_DrawableAttribute.cxx index 8d72f6a6a..1a1db8c38 100644 --- a/src/SALOMEDS/SALOMEDS_DrawableAttribute.cxx +++ b/src/SALOMEDS/SALOMEDS_DrawableAttribute.cxx @@ -26,9 +26,9 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_DrawableAttribute.ixx" #include +using namespace std; //======================================================================= //function : GetID diff --git a/src/SALOMEDS/SALOMEDS_ExpandableAttribute.cxx b/src/SALOMEDS/SALOMEDS_ExpandableAttribute.cxx index b20dd9c10..2ab9ebdd5 100644 --- a/src/SALOMEDS/SALOMEDS_ExpandableAttribute.cxx +++ b/src/SALOMEDS/SALOMEDS_ExpandableAttribute.cxx @@ -26,9 +26,9 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_ExpandableAttribute.ixx" #include +using namespace std; //======================================================================= //function : GetID diff --git a/src/SALOMEDS/SALOMEDS_GenericAttribute_i.cxx b/src/SALOMEDS/SALOMEDS_GenericAttribute_i.cxx index 7311b29c0..87f76e105 100644 --- a/src/SALOMEDS/SALOMEDS_GenericAttribute_i.cxx +++ b/src/SALOMEDS/SALOMEDS_GenericAttribute_i.cxx @@ -9,7 +9,6 @@ // Module : SALOME // $Header$ -using namespace std; #include #include @@ -55,6 +54,7 @@ using namespace std; #include "SALOMEDS_ExternalFileDef.hxx" #include "SALOMEDS_FileType.hxx" #include "Utils_ExceptHandlers.hxx" +using namespace std; #define RegisteredAttributes 26 UNEXPECT_CATCH(GALockProtection, SALOMEDS::GenericAttribute::LockProtection); diff --git a/src/SALOMEDS/SALOMEDS_IORAttribute.cxx b/src/SALOMEDS/SALOMEDS_IORAttribute.cxx index c305641a4..f71b538fd 100644 --- a/src/SALOMEDS/SALOMEDS_IORAttribute.cxx +++ b/src/SALOMEDS/SALOMEDS_IORAttribute.cxx @@ -26,11 +26,11 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_IORAttribute.ixx" #include #include #include "SALOMEDS_Study_i.hxx" +using namespace std; //======================================================================= //function : GetID diff --git a/src/SALOMEDS/SALOMEDS_LocalIDAttribute.cxx b/src/SALOMEDS/SALOMEDS_LocalIDAttribute.cxx index f38360b4a..406cde57e 100644 --- a/src/SALOMEDS/SALOMEDS_LocalIDAttribute.cxx +++ b/src/SALOMEDS/SALOMEDS_LocalIDAttribute.cxx @@ -26,9 +26,9 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_LocalIDAttribute.ixx" #include +using namespace std; //======================================================================= //function : GetID diff --git a/src/SALOMEDS/SALOMEDS_OCAFApplication.cxx b/src/SALOMEDS/SALOMEDS_OCAFApplication.cxx index e0c7ad35f..5913c6842 100644 --- a/src/SALOMEDS/SALOMEDS_OCAFApplication.cxx +++ b/src/SALOMEDS/SALOMEDS_OCAFApplication.cxx @@ -26,8 +26,8 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_OCAFApplication.ixx" +using namespace std; //======================================================================= //function : SALOMEDS_OCAFApplication diff --git a/src/SALOMEDS/SALOMEDS_OpenedAttribute.cxx b/src/SALOMEDS/SALOMEDS_OpenedAttribute.cxx index fc074bf13..f7c17c3ef 100644 --- a/src/SALOMEDS/SALOMEDS_OpenedAttribute.cxx +++ b/src/SALOMEDS/SALOMEDS_OpenedAttribute.cxx @@ -26,9 +26,9 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_OpenedAttribute.ixx" #include +using namespace std; //======================================================================= //function : GetID diff --git a/src/SALOMEDS/SALOMEDS_PersRefAttribute.cxx b/src/SALOMEDS/SALOMEDS_PersRefAttribute.cxx index 8e313831c..8d57af837 100644 --- a/src/SALOMEDS/SALOMEDS_PersRefAttribute.cxx +++ b/src/SALOMEDS/SALOMEDS_PersRefAttribute.cxx @@ -26,10 +26,10 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_PersRefAttribute.ixx" #include #include +using namespace std; //======================================================================= //function : GetID diff --git a/src/SALOMEDS/SALOMEDS_PixMapAttribute.cxx b/src/SALOMEDS/SALOMEDS_PixMapAttribute.cxx index fa84b6180..32c570500 100644 --- a/src/SALOMEDS/SALOMEDS_PixMapAttribute.cxx +++ b/src/SALOMEDS/SALOMEDS_PixMapAttribute.cxx @@ -26,10 +26,10 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_PixMapAttribute.ixx" #include #include +using namespace std; //======================================================================= //function : GetID diff --git a/src/SALOMEDS/SALOMEDS_PythonObjectAttribute.cxx b/src/SALOMEDS/SALOMEDS_PythonObjectAttribute.cxx index fd0538e0e..f8c8d9de4 100644 --- a/src/SALOMEDS/SALOMEDS_PythonObjectAttribute.cxx +++ b/src/SALOMEDS/SALOMEDS_PythonObjectAttribute.cxx @@ -9,9 +9,9 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_PythonObjectAttribute.ixx" #include +using namespace std; const Standard_GUID& SALOMEDS_PythonObjectAttribute::GetID() { diff --git a/src/SALOMEDS/SALOMEDS_SComponentIterator_i.cxx b/src/SALOMEDS/SALOMEDS_SComponentIterator_i.cxx index 77b0b4655..1cd09ebe6 100644 --- a/src/SALOMEDS/SALOMEDS_SComponentIterator_i.cxx +++ b/src/SALOMEDS/SALOMEDS_SComponentIterator_i.cxx @@ -26,8 +26,8 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_SComponentIterator_i.hxx" +using namespace std; //============================================================================ diff --git a/src/SALOMEDS/SALOMEDS_SComponent_i.cxx b/src/SALOMEDS/SALOMEDS_SComponent_i.cxx index 15b066e5e..ee8997566 100644 --- a/src/SALOMEDS/SALOMEDS_SComponent_i.cxx +++ b/src/SALOMEDS/SALOMEDS_SComponent_i.cxx @@ -26,9 +26,9 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_SComponent_i.hxx" #include "utilities.h" +using namespace std; //============================================================================ diff --git a/src/SALOMEDS/SALOMEDS_SObject_i.cxx b/src/SALOMEDS/SALOMEDS_SObject_i.cxx index 429716886..04478d1de 100644 --- a/src/SALOMEDS/SALOMEDS_SObject_i.cxx +++ b/src/SALOMEDS/SALOMEDS_SObject_i.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "utilities.h" #include "SALOMEDS_SObject_i.hxx" //SALOMEDS Headers @@ -34,6 +33,7 @@ using namespace std; #include "SALOMEDS_GenericAttribute_i.hxx" #include "SALOMEDS_IORAttribute.hxx" #include +using namespace std; //============================================================================ /*! Function : constructor diff --git a/src/SALOMEDS/SALOMEDS_SelectableAttribute.cxx b/src/SALOMEDS/SALOMEDS_SelectableAttribute.cxx index 40b179eca..9bd6406b2 100644 --- a/src/SALOMEDS/SALOMEDS_SelectableAttribute.cxx +++ b/src/SALOMEDS/SALOMEDS_SelectableAttribute.cxx @@ -26,9 +26,9 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_SelectableAttribute.ixx" #include +using namespace std; //======================================================================= //function : GetID diff --git a/src/SALOMEDS/SALOMEDS_SequenceOfIntegerAttribute.cxx b/src/SALOMEDS/SALOMEDS_SequenceOfIntegerAttribute.cxx index ed256eb0a..b18143181 100644 --- a/src/SALOMEDS/SALOMEDS_SequenceOfIntegerAttribute.cxx +++ b/src/SALOMEDS/SALOMEDS_SequenceOfIntegerAttribute.cxx @@ -26,8 +26,8 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_SequenceOfIntegerAttribute.ixx" +using namespace std; //======================================================================= //function : GetID diff --git a/src/SALOMEDS/SALOMEDS_SequenceOfRealAttribute.cxx b/src/SALOMEDS/SALOMEDS_SequenceOfRealAttribute.cxx index 9c8d3516d..13d242526 100644 --- a/src/SALOMEDS/SALOMEDS_SequenceOfRealAttribute.cxx +++ b/src/SALOMEDS/SALOMEDS_SequenceOfRealAttribute.cxx @@ -26,9 +26,9 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_SequenceOfRealAttribute.ixx" #include +using namespace std; //======================================================================= //function : GetID diff --git a/src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx b/src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx index 47bfde5ae..125152fed 100644 --- a/src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx +++ b/src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "utilities.h" #include "SALOMEDS_Study_i.hxx" //#include "SALOMEDS_StudyBuilder_i.hxx" @@ -83,6 +82,7 @@ using namespace std; #include #include +using namespace std; #define USE_CASE_LABEL_TAG 2 #define DIRECTORYID 16661 diff --git a/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx b/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx index 0f4a38c99..71033bb23 100644 --- a/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx +++ b/src/SALOMEDS/SALOMEDS_StudyManager_i.cxx @@ -74,11 +74,11 @@ #include "Utils_CorbaException.hxx" #include -using namespace std; #include "SALOME_GenericObj_i.hh" #include "Utils_ExceptHandlers.hxx" +using namespace std; UNEXPECT_CATCH(SalomeException,SALOME::SALOME_Exception); UNEXPECT_CATCH(LockProtection, SALOMEDS::StudyBuilder::LockProtection); diff --git a/src/SALOMEDS/SALOMEDS_StudyPropertiesAttribute.cxx b/src/SALOMEDS/SALOMEDS_StudyPropertiesAttribute.cxx index 4f83613be..62835949d 100644 --- a/src/SALOMEDS/SALOMEDS_StudyPropertiesAttribute.cxx +++ b/src/SALOMEDS/SALOMEDS_StudyPropertiesAttribute.cxx @@ -9,8 +9,8 @@ // Module : SALOME // $Header$ -using namespace std; #include +using namespace std; const Standard_GUID& SALOMEDS_StudyPropertiesAttribute::GetID() { diff --git a/src/SALOMEDS/SALOMEDS_Study_i.cxx b/src/SALOMEDS/SALOMEDS_Study_i.cxx index be1599434..4b7287aad 100644 --- a/src/SALOMEDS/SALOMEDS_Study_i.cxx +++ b/src/SALOMEDS/SALOMEDS_Study_i.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "utilities.h" #include "SALOMEDS_Study_i.hxx" @@ -44,6 +43,7 @@ using namespace std; #include "SALOMEDS_LocalIDAttribute.hxx" #include "SALOMEDS_PersRefAttribute.hxx" #include "SALOMEDS_UseCaseIterator_i.hxx" +using namespace std; #define DIRECTORYID 16661 diff --git a/src/SALOMEDS/SALOMEDS_TableOfIntegerAttribute.cxx b/src/SALOMEDS/SALOMEDS_TableOfIntegerAttribute.cxx index a5134a76f..abe7171f8 100644 --- a/src/SALOMEDS/SALOMEDS_TableOfIntegerAttribute.cxx +++ b/src/SALOMEDS/SALOMEDS_TableOfIntegerAttribute.cxx @@ -9,12 +9,12 @@ // Module : SALOME // $Header$ -using namespace std; #include #include #include #include +using namespace std; const Standard_GUID& SALOMEDS_TableOfIntegerAttribute::GetID() { diff --git a/src/SALOMEDS/SALOMEDS_TableOfRealAttribute.cxx b/src/SALOMEDS/SALOMEDS_TableOfRealAttribute.cxx index d12b58bb2..f234fca97 100644 --- a/src/SALOMEDS/SALOMEDS_TableOfRealAttribute.cxx +++ b/src/SALOMEDS/SALOMEDS_TableOfRealAttribute.cxx @@ -9,13 +9,13 @@ // Module : SALOME // $Header$ -using namespace std; #include #include #include #include #include +using namespace std; const Standard_GUID& SALOMEDS_TableOfRealAttribute::GetID() { diff --git a/src/SALOMEDS/SALOMEDS_TableOfStringAttribute.cxx b/src/SALOMEDS/SALOMEDS_TableOfStringAttribute.cxx index d3a3ab2e5..9fe181205 100644 --- a/src/SALOMEDS/SALOMEDS_TableOfStringAttribute.cxx +++ b/src/SALOMEDS/SALOMEDS_TableOfStringAttribute.cxx @@ -8,13 +8,13 @@ // Author : Sergey Ruin // Module : SALOME -using namespace std; #include #include #include #include #include +using namespace std; const Standard_GUID& SALOMEDS_TableOfStringAttribute::GetID() { diff --git a/src/SALOMEDS/SALOMEDS_TargetAttribute.cxx b/src/SALOMEDS/SALOMEDS_TargetAttribute.cxx index 9e623b8b1..a57efc214 100644 --- a/src/SALOMEDS/SALOMEDS_TargetAttribute.cxx +++ b/src/SALOMEDS/SALOMEDS_TargetAttribute.cxx @@ -26,11 +26,11 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_TargetAttribute.ixx" #include #include #include "utilities.h" +using namespace std; //======================================================================= //function : GetID diff --git a/src/SALOMEDS/SALOMEDS_TextColorAttribute.cxx b/src/SALOMEDS/SALOMEDS_TextColorAttribute.cxx index 89b033e6e..33f137c20 100644 --- a/src/SALOMEDS/SALOMEDS_TextColorAttribute.cxx +++ b/src/SALOMEDS/SALOMEDS_TextColorAttribute.cxx @@ -26,8 +26,8 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_TextColorAttribute.ixx" +using namespace std; //======================================================================= //function : GetID diff --git a/src/SALOMEDS/SALOMEDS_TextHighlightColorAttribute.cxx b/src/SALOMEDS/SALOMEDS_TextHighlightColorAttribute.cxx index ccc3c70a8..c27270f4a 100644 --- a/src/SALOMEDS/SALOMEDS_TextHighlightColorAttribute.cxx +++ b/src/SALOMEDS/SALOMEDS_TextHighlightColorAttribute.cxx @@ -26,8 +26,8 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEDS_TextHighlightColorAttribute.ixx" +using namespace std; //======================================================================= //function : GetID diff --git a/src/SALOMEDS/SALOMEDS_UseCaseBuilder_i.cxx b/src/SALOMEDS/SALOMEDS_UseCaseBuilder_i.cxx index ba6d6397e..e04481fdb 100644 --- a/src/SALOMEDS/SALOMEDS_UseCaseBuilder_i.cxx +++ b/src/SALOMEDS/SALOMEDS_UseCaseBuilder_i.cxx @@ -8,7 +8,6 @@ // Author : Yves FRICAUD // Module : SALOME -using namespace std; #include "SALOMEDS_UseCaseBuilder_i.hxx" #include "SALOMEDS_AttributeComment_i.hxx" #include "SALOMEDS_SObject_i.hxx" @@ -24,6 +23,7 @@ using namespace std; #include #include #include +using namespace std; #define USE_CASE_LABEL_TAG 2 #define USE_CASE_GUID "AA43BB12-D9CD-11d6-945D-0050DA506788" diff --git a/src/SALOMEDS/SALOMEDS_UseCaseIterator_i.cxx b/src/SALOMEDS/SALOMEDS_UseCaseIterator_i.cxx index 69e7d39ec..07f79bf75 100644 --- a/src/SALOMEDS/SALOMEDS_UseCaseIterator_i.cxx +++ b/src/SALOMEDS/SALOMEDS_UseCaseIterator_i.cxx @@ -8,10 +8,10 @@ // Author : Yves FRICAUD // Module : SALOME -using namespace std; #include "SALOMEDS_UseCaseIterator_i.hxx" #include "SALOMEDS_SObject_i.hxx" #include "utilities.h" +using namespace std; diff --git a/src/SALOMEGUI/QAD_Application.cxx b/src/SALOMEGUI/QAD_Application.cxx index eb8b43d5e..c58e5f57f 100644 --- a/src/SALOMEGUI/QAD_Application.cxx +++ b/src/SALOMEGUI/QAD_Application.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; /*! \class QAD_Application QAD_Application.h \brief Study manager for QAD-based application. @@ -62,6 +61,7 @@ using namespace std; #include #include #include +using namespace std; static bool checkPermission(QString fileName) { if ( QFile::exists( fileName ) ) { diff --git a/src/SALOMEGUI/QAD_Config.cxx b/src/SALOMEGUI/QAD_Config.cxx index 33b563237..0616c2611 100644 --- a/src/SALOMEGUI/QAD_Config.cxx +++ b/src/SALOMEGUI/QAD_Config.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; /*! \class QAD_Config QAD_Config.h \brief Settings file management for QAD-based application. @@ -40,6 +39,7 @@ using namespace std; #include #include #include +using namespace std; /*! diff --git a/src/SALOMEGUI/QAD_DirListDlg.cxx b/src/SALOMEGUI/QAD_DirListDlg.cxx index a45638cd5..542df51cf 100644 --- a/src/SALOMEGUI/QAD_DirListDlg.cxx +++ b/src/SALOMEGUI/QAD_DirListDlg.cxx @@ -9,7 +9,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "QAD_DirListDlg.h" #include "QAD_Desktop.h" #include "QAD_FileDlg.h" @@ -19,6 +18,7 @@ using namespace std; #include #include #include +using namespace std; #define MIN_WIDTH 400 #define MIN_HEIGHT 200 diff --git a/src/SALOMEGUI/QAD_FileDlg.cxx b/src/SALOMEGUI/QAD_FileDlg.cxx index d3e1bb230..40b24ef6f 100644 --- a/src/SALOMEGUI/QAD_FileDlg.cxx +++ b/src/SALOMEGUI/QAD_FileDlg.cxx @@ -9,7 +9,6 @@ // Module : SALOME // $Header$ -using namespace std; #include #include #include @@ -22,6 +21,7 @@ using namespace std; #include "QAD_FileDlg.h" #include "QAD_MessageBox.h" #include "QAD_Tools.h" +using namespace std; #define MIN_COMBO_SIZE 100 diff --git a/src/SALOMEGUI/QAD_Help.cxx b/src/SALOMEGUI/QAD_Help.cxx index ad6697036..e14035b59 100644 --- a/src/SALOMEGUI/QAD_Help.cxx +++ b/src/SALOMEGUI/QAD_Help.cxx @@ -26,8 +26,8 @@ // Module : SALOME // $Header$ -using namespace std; #include "QAD_Help.h" +using namespace std; /*! \class QAD_Help QAD_HelpL.h diff --git a/src/SALOMEGUI/QAD_HelpWindow.cxx b/src/SALOMEGUI/QAD_HelpWindow.cxx index 8f4322541..2453ec7e4 100644 --- a/src/SALOMEGUI/QAD_HelpWindow.cxx +++ b/src/SALOMEGUI/QAD_HelpWindow.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; /*! \class QAD_HelpWindow QAD_HelpWindow.h \brief Html browser for help. @@ -46,6 +45,7 @@ using namespace std; #include #include #include +using namespace std; /*! Constructor diff --git a/src/SALOMEGUI/QAD_LeftFrame.cxx b/src/SALOMEGUI/QAD_LeftFrame.cxx index c3a021d26..8edb54c48 100644 --- a/src/SALOMEGUI/QAD_LeftFrame.cxx +++ b/src/SALOMEGUI/QAD_LeftFrame.cxx @@ -26,10 +26,10 @@ // Module : SALOME // $Header$ -using namespace std; #include "QAD_LeftFrame.h" #include "QAD_ObjectBrowser.h" #include +using namespace std; /*! \class QAD_LeftFrame QAD_LeftFrame.h diff --git a/src/SALOMEGUI/QAD_ListMenuIdAction.cxx b/src/SALOMEGUI/QAD_ListMenuIdAction.cxx index 04c8d041d..16bb368dc 100644 --- a/src/SALOMEGUI/QAD_ListMenuIdAction.cxx +++ b/src/SALOMEGUI/QAD_ListMenuIdAction.cxx @@ -26,8 +26,8 @@ // Module : SALOME // $Header$ -using namespace std; #include "QAD_ListMenuIdAction.h" +using namespace std; QAD_ListMenuIdAction::QAD_ListMenuIdAction(QPopupMenu* theMenu, int id, diff --git a/src/SALOMEGUI/QAD_ListPopupMenu.cxx b/src/SALOMEGUI/QAD_ListPopupMenu.cxx index e5a5d134f..1d9e9a7b9 100644 --- a/src/SALOMEGUI/QAD_ListPopupMenu.cxx +++ b/src/SALOMEGUI/QAD_ListPopupMenu.cxx @@ -26,8 +26,8 @@ // Module : SALOME // $Header$ -using namespace std; #include "QAD_ListPopupMenu.h" +using namespace std; /*! Constructor. diff --git a/src/SALOMEGUI/QAD_Menus.cxx b/src/SALOMEGUI/QAD_Menus.cxx index 904ee2713..b7ddf6ae7 100644 --- a/src/SALOMEGUI/QAD_Menus.cxx +++ b/src/SALOMEGUI/QAD_Menus.cxx @@ -26,8 +26,8 @@ // Module : SALOME // $Header$ -using namespace std; #include "QAD_Menus.h" +using namespace std; /*! Constructor. diff --git a/src/SALOMEGUI/QAD_Message.cxx b/src/SALOMEGUI/QAD_Message.cxx index 4730b1ee8..1f5f570c4 100644 --- a/src/SALOMEGUI/QAD_Message.cxx +++ b/src/SALOMEGUI/QAD_Message.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "QAD_Message.h" #include "QAD_Application.h" #include "QAD_Config.h" @@ -35,6 +34,7 @@ using namespace std; #include #include #include +using namespace std; enum { IdCopy, IdClear, IdSelectAll }; diff --git a/src/SALOMEGUI/QAD_MessageBox.cxx b/src/SALOMEGUI/QAD_MessageBox.cxx index c6aad0f76..2f4160624 100644 --- a/src/SALOMEGUI/QAD_MessageBox.cxx +++ b/src/SALOMEGUI/QAD_MessageBox.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; /*! \class QAD_MessageBox QAD_MessageBox.h \brief Message dialog box for QAD-based application. @@ -37,6 +36,7 @@ using namespace std; // QT Includes #include #include +using namespace std; /*! Shows info message box with one button [ static ] diff --git a/src/SALOMEGUI/QAD_NameBrowser.cxx b/src/SALOMEGUI/QAD_NameBrowser.cxx index 730a53bad..7cdf04b59 100644 --- a/src/SALOMEGUI/QAD_NameBrowser.cxx +++ b/src/SALOMEGUI/QAD_NameBrowser.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "QAD_NameBrowser.h" #include "QAD_Study.h" @@ -51,6 +50,7 @@ using namespace std; #include #include #include +using namespace std; /*! Constructs a QAD_NameBrowser which is a child of 'parent', with the diff --git a/src/SALOMEGUI/QAD_ObjectBrowserItem.cxx b/src/SALOMEGUI/QAD_ObjectBrowserItem.cxx index 370358317..696fb78f4 100644 --- a/src/SALOMEGUI/QAD_ObjectBrowserItem.cxx +++ b/src/SALOMEGUI/QAD_ObjectBrowserItem.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "QAD_ObjectBrowserItem.h" #include @@ -34,6 +33,7 @@ using namespace std; #include #include #include +using namespace std; /*! Constructors diff --git a/src/SALOMEGUI/QAD_Operation.cxx b/src/SALOMEGUI/QAD_Operation.cxx index 87c99f194..42e0bb955 100644 --- a/src/SALOMEGUI/QAD_Operation.cxx +++ b/src/SALOMEGUI/QAD_Operation.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; /*! \class QAD_Operation QAD_Operation.h \brief Base class for OCAF operations in QAD-based application. @@ -39,6 +38,7 @@ using namespace std; // QT Include #include +using namespace std; /*! Constructor diff --git a/src/SALOMEGUI/QAD_OperatorMenus.cxx b/src/SALOMEGUI/QAD_OperatorMenus.cxx index 8ad4e40d0..34bc0290c 100644 --- a/src/SALOMEGUI/QAD_OperatorMenus.cxx +++ b/src/SALOMEGUI/QAD_OperatorMenus.cxx @@ -26,9 +26,9 @@ // Module : SALOME // $Header$ -using namespace std; #include "QAD_OperatorMenus.h" #include "QAD_Desktop.h" +using namespace std; /*! Constructor. diff --git a/src/SALOMEGUI/QAD_ParserSettings.cxx b/src/SALOMEGUI/QAD_ParserSettings.cxx index b824dad2a..c0506f189 100644 --- a/src/SALOMEGUI/QAD_ParserSettings.cxx +++ b/src/SALOMEGUI/QAD_ParserSettings.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "QAD_ParserSettings.h" #include @@ -35,6 +34,7 @@ using namespace std; #include #include #include +using namespace std; /*! diff --git a/src/SALOMEGUI/QAD_Popup.cxx b/src/SALOMEGUI/QAD_Popup.cxx index aa2c65a93..9bd085b6b 100644 --- a/src/SALOMEGUI/QAD_Popup.cxx +++ b/src/SALOMEGUI/QAD_Popup.cxx @@ -26,10 +26,10 @@ // Module : SALOME // $Header$ -using namespace std; #include "QAD.h" #include "QAD_Popup.h" #include "utilities.h" +using namespace std; /***************************************************************************** ** Class QAD_PopupClientServer diff --git a/src/SALOMEGUI/QAD_ResourceMgr.cxx b/src/SALOMEGUI/QAD_ResourceMgr.cxx index a220c1536..576c7475c 100644 --- a/src/SALOMEGUI/QAD_ResourceMgr.cxx +++ b/src/SALOMEGUI/QAD_ResourceMgr.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; /*! \class QAD_ResourceMgr QAD_ResourceMgr.h \brief ResourceMgr QAD-based application. @@ -46,6 +45,7 @@ using namespace std; #include #include +using namespace std; /* configuration file */ static const char* CONFIG_FILE = "config"; diff --git a/src/SALOMEGUI/QAD_Settings.cxx b/src/SALOMEGUI/QAD_Settings.cxx index 14df2e8f3..d1fec9a21 100644 --- a/src/SALOMEGUI/QAD_Settings.cxx +++ b/src/SALOMEGUI/QAD_Settings.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "QAD_Settings.h" #include @@ -36,6 +35,7 @@ using namespace std; #include #include #include +using namespace std; /*! Class QAD_Settings is a base class for different kind of settings diff --git a/src/SALOMEGUI/QAD_SpinBoxDbl.cxx b/src/SALOMEGUI/QAD_SpinBoxDbl.cxx index 6bf31664c..dffa96919 100644 --- a/src/SALOMEGUI/QAD_SpinBoxDbl.cxx +++ b/src/SALOMEGUI/QAD_SpinBoxDbl.cxx @@ -9,7 +9,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "QAD_SpinBoxDbl.h" #include #include @@ -19,6 +18,7 @@ using namespace std; #include #include #include +using namespace std; //****************************************************************************** // QDblRangeControl class diff --git a/src/SALOMEGUI/QAD_Splitter.cxx b/src/SALOMEGUI/QAD_Splitter.cxx index cb472ea71..0d620f597 100644 --- a/src/SALOMEGUI/QAD_Splitter.cxx +++ b/src/SALOMEGUI/QAD_Splitter.cxx @@ -26,8 +26,8 @@ // Module : SALOME // $Header$ -using namespace std; #include "QAD_Splitter.h" +using namespace std; /*! Constructs an horizontal splitter. diff --git a/src/SALOMEGUI/QAD_Tools.cxx b/src/SALOMEGUI/QAD_Tools.cxx index e2e85bf53..dfa23e5c7 100644 --- a/src/SALOMEGUI/QAD_Tools.cxx +++ b/src/SALOMEGUI/QAD_Tools.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; /*! \class QAD_Tools QAD_Tools.h \brief Helpful functions for QAD. @@ -44,6 +43,7 @@ using namespace std; #include #include #include +using namespace std; static char* tempName() { diff --git a/src/SALOMEGUI/QAD_XmlHandler.cxx b/src/SALOMEGUI/QAD_XmlHandler.cxx index 2226782d4..85df10900 100644 --- a/src/SALOMEGUI/QAD_XmlHandler.cxx +++ b/src/SALOMEGUI/QAD_XmlHandler.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #define INCLUDE_MENUITEM_DEF #include "QAD_Desktop.h" @@ -41,6 +40,7 @@ using namespace std; #include #include #include +using namespace std; map QAD_XmlHandler::_bibmap; diff --git a/src/SALOMEGUI/SALOMEGUI.cxx b/src/SALOMEGUI/SALOMEGUI.cxx index 5f853a485..6c2795394 100644 --- a/src/SALOMEGUI/SALOMEGUI.cxx +++ b/src/SALOMEGUI/SALOMEGUI.cxx @@ -28,6 +28,7 @@ #include "SALOMEGUI.h" #include "QAD_Desktop.h" +using namespace std; //============================================================================= diff --git a/src/SALOMEGUI/SALOMEGUI_AboutDlg.cxx b/src/SALOMEGUI/SALOMEGUI_AboutDlg.cxx index 7ae5111de..fb7e59301 100644 --- a/src/SALOMEGUI/SALOMEGUI_AboutDlg.cxx +++ b/src/SALOMEGUI/SALOMEGUI_AboutDlg.cxx @@ -26,13 +26,13 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEGUI_AboutDlg.h" #include "QAD_Desktop.h" #include "QAD_Tools.h" #include #include #include +using namespace std; /* * Constructor diff --git a/src/SALOMEGUI/SALOMEGUI_ActivateComponentDlg.cxx b/src/SALOMEGUI/SALOMEGUI_ActivateComponentDlg.cxx index 42859b842..a182a2d46 100644 --- a/src/SALOMEGUI/SALOMEGUI_ActivateComponentDlg.cxx +++ b/src/SALOMEGUI/SALOMEGUI_ActivateComponentDlg.cxx @@ -8,7 +8,6 @@ // Author : Michael Zorin (mzn) // Module : SALOME -using namespace std; #include "SALOMEGUI_ActivateComponentDlg.h" #include @@ -16,6 +15,7 @@ using namespace std; #include #include #include +using namespace std; static const char* const default_icon[] = { "48 48 17 1", diff --git a/src/SALOMEGUI/SALOMEGUI_CloseDlg.cxx b/src/SALOMEGUI/SALOMEGUI_CloseDlg.cxx index 090d66ad2..556e10ca4 100644 --- a/src/SALOMEGUI/SALOMEGUI_CloseDlg.cxx +++ b/src/SALOMEGUI/SALOMEGUI_CloseDlg.cxx @@ -8,7 +8,6 @@ // Author : Vasily RUSYAEV (vrv) // Module : SALOME -using namespace std; #include "SALOMEGUI_CloseDlg.h" #include @@ -16,6 +15,7 @@ using namespace std; #include #include #include +using namespace std; SALOMEGUI_CloseDlg::SALOMEGUI_CloseDlg ( QWidget * parent, const char * name, bool modal, WFlags f ) diff --git a/src/SALOMEGUI/SALOMEGUI_Desktop.cxx b/src/SALOMEGUI/SALOMEGUI_Desktop.cxx index 63ce9dbe8..c73bd1e3d 100644 --- a/src/SALOMEGUI/SALOMEGUI_Desktop.cxx +++ b/src/SALOMEGUI/SALOMEGUI_Desktop.cxx @@ -26,12 +26,12 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEGUI_Desktop.h" #include "SALOME_Selection.h" #include "SALOME_ListIteratorOfListIO.hxx" #include CORBA_SERVER_HEADER(SALOMEDS_Attributes) +using namespace std; /*! Constructor diff --git a/src/SALOMEGUI/SALOMEGUI_ExternalBrowserDlg.cxx b/src/SALOMEGUI/SALOMEGUI_ExternalBrowserDlg.cxx index 2cb58f858..34a33b1a3 100644 --- a/src/SALOMEGUI/SALOMEGUI_ExternalBrowserDlg.cxx +++ b/src/SALOMEGUI/SALOMEGUI_ExternalBrowserDlg.cxx @@ -3,7 +3,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEGUI_ExternalBrowserDlg.h" #include @@ -14,6 +13,7 @@ using namespace std; #include "QAD_FileDlg.h" #include "QAD_Tools.h" +using namespace std; /* * Constructs a modal SALOMEGUI_ExternalBowserDlg which is a child of 'parent' diff --git a/src/SALOMEGUI/SALOMEGUI_ImportOperation.cxx b/src/SALOMEGUI/SALOMEGUI_ImportOperation.cxx index 36c535e83..84e0c17ce 100644 --- a/src/SALOMEGUI/SALOMEGUI_ImportOperation.cxx +++ b/src/SALOMEGUI/SALOMEGUI_ImportOperation.cxx @@ -26,8 +26,8 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEGUI_ImportOperation.h" +using namespace std; SALOMEGUI_ImportOperation::SALOMEGUI_ImportOperation( QAD_Study* study ) : QAD_Operation( study ) diff --git a/src/SALOMEGUI/SALOMEGUI_LoadStudiesDlg.cxx b/src/SALOMEGUI/SALOMEGUI_LoadStudiesDlg.cxx index de3343aff..0e3c09dce 100644 --- a/src/SALOMEGUI/SALOMEGUI_LoadStudiesDlg.cxx +++ b/src/SALOMEGUI/SALOMEGUI_LoadStudiesDlg.cxx @@ -26,13 +26,13 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEGUI_LoadStudiesDlg.h" #include #include #include #include +using namespace std; #define SPACING_SIZE 6 #define MARGIN_SIZE 11 diff --git a/src/SALOMEGUI/SALOMEGUI_NameDlg.cxx b/src/SALOMEGUI/SALOMEGUI_NameDlg.cxx index 841e42f9b..dd21fe89b 100644 --- a/src/SALOMEGUI/SALOMEGUI_NameDlg.cxx +++ b/src/SALOMEGUI/SALOMEGUI_NameDlg.cxx @@ -9,7 +9,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEGUI_NameDlg.h" #include "QAD_Application.h" #include "QAD_Desktop.h" @@ -20,6 +19,7 @@ using namespace std; #include #include #include +using namespace std; /*! Constructor diff --git a/src/SALOMEGUI/SALOMEGUI_OpenWith.cxx b/src/SALOMEGUI/SALOMEGUI_OpenWith.cxx index 1638bdbb9..2203f5f97 100644 --- a/src/SALOMEGUI/SALOMEGUI_OpenWith.cxx +++ b/src/SALOMEGUI/SALOMEGUI_OpenWith.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEGUI_OpenWith.h" #include @@ -34,6 +33,7 @@ using namespace std; #include #include #include +using namespace std; #define SPACING_SIZE 6 #define MARGIN_SIZE 11 diff --git a/src/SALOMEGUI/SALOMEGUI_QtCatchCorbaException.cxx b/src/SALOMEGUI/SALOMEGUI_QtCatchCorbaException.cxx index 971433632..ede2c4366 100644 --- a/src/SALOMEGUI/SALOMEGUI_QtCatchCorbaException.cxx +++ b/src/SALOMEGUI/SALOMEGUI_QtCatchCorbaException.cxx @@ -26,12 +26,12 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEGUI_QtCatchCorbaException.hxx" #include "utilities.h" #include "QAD_Desktop.h" #include "QAD_MessageBox.h" +using namespace std; void QtCatchCorbaException(const SALOME::SALOME_Exception & S_ex) { diff --git a/src/SALOMEGUI/SALOMEGUI_SetValueDlg.cxx b/src/SALOMEGUI/SALOMEGUI_SetValueDlg.cxx index 3a8eb70f2..caa274038 100644 --- a/src/SALOMEGUI/SALOMEGUI_SetValueDlg.cxx +++ b/src/SALOMEGUI/SALOMEGUI_SetValueDlg.cxx @@ -9,7 +9,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEGUI_SetValueDlg.h" #include "QAD_Tools.h" @@ -19,6 +18,7 @@ using namespace std; #include #include #include +using namespace std; #define MARGIN_SIZE 11 #define SPACING_SIZE 6 diff --git a/src/SALOMEGUI/SALOMEGUI_SetupCurveDlg.cxx b/src/SALOMEGUI/SALOMEGUI_SetupCurveDlg.cxx index 15e5b4cb6..4265cb95d 100644 --- a/src/SALOMEGUI/SALOMEGUI_SetupCurveDlg.cxx +++ b/src/SALOMEGUI/SALOMEGUI_SetupCurveDlg.cxx @@ -9,7 +9,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEGUI_SetupCurveDlg.h" #include "QAD_Tools.h" #include @@ -20,6 +19,7 @@ using namespace std; #include #include #include +using namespace std; #define MARGIN_SIZE 11 #define SPACING_SIZE 6 diff --git a/src/SALOMEGUI/SALOMEGUI_StudyPropertiesDlg.cxx b/src/SALOMEGUI/SALOMEGUI_StudyPropertiesDlg.cxx index 0019a14dd..4d9a73281 100644 --- a/src/SALOMEGUI/SALOMEGUI_StudyPropertiesDlg.cxx +++ b/src/SALOMEGUI/SALOMEGUI_StudyPropertiesDlg.cxx @@ -9,7 +9,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEGUI_StudyPropertiesDlg.h" #include "QAD_Desktop.h" @@ -19,6 +18,7 @@ using namespace std; #include #include +using namespace std; #define DEFAULT_MARGIN 11 #define DEFAULT_SPACING 6 diff --git a/src/SALOMEGUI/SALOMEGUI_TableDlg.cxx b/src/SALOMEGUI/SALOMEGUI_TableDlg.cxx index 5f0455fcd..a70b74df4 100644 --- a/src/SALOMEGUI/SALOMEGUI_TableDlg.cxx +++ b/src/SALOMEGUI/SALOMEGUI_TableDlg.cxx @@ -9,7 +9,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEGUI_TableDlg.h" #include "QAD_Tools.h" #include "QAD_MessageBox.h" @@ -22,6 +21,7 @@ using namespace std; #include #include #include "utilities.h" +using namespace std; #define MARGIN_SIZE 11 #define SPACING_SIZE 6 diff --git a/src/SALOMEGUI/SALOMEGUI_TrihedronSizeDlg.cxx b/src/SALOMEGUI/SALOMEGUI_TrihedronSizeDlg.cxx index ed31165c3..8f78226ce 100644 --- a/src/SALOMEGUI/SALOMEGUI_TrihedronSizeDlg.cxx +++ b/src/SALOMEGUI/SALOMEGUI_TrihedronSizeDlg.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEGUI_TrihedronSizeDlg.h" #include @@ -34,6 +33,7 @@ using namespace std; #include #include #include +using namespace std; #define MARGIN_SIZE 11 #define SPACING_SIZE 6 diff --git a/src/SALOMEGUI/SALOMEGUI_ViewChoiceDlg.cxx b/src/SALOMEGUI/SALOMEGUI_ViewChoiceDlg.cxx index d091d18da..9451c8777 100644 --- a/src/SALOMEGUI/SALOMEGUI_ViewChoiceDlg.cxx +++ b/src/SALOMEGUI/SALOMEGUI_ViewChoiceDlg.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOMEGUI_ViewChoiceDlg.h" #include "QAD_Config.h" #include "QAD_StudyFrame.h" @@ -39,6 +38,7 @@ using namespace std; #include #include #include +using namespace std; /* * Constructs a SALOMEGUI_ViewChoiceDlg which is a child of 'parent', with the diff --git a/src/SALOMEGUI/SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger_0.cxx b/src/SALOMEGUI/SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger_0.cxx index b45bb6c6d..8d0897844 100644 --- a/src/SALOMEGUI/SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger_0.cxx +++ b/src/SALOMEGUI/SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger_0.cxx @@ -24,7 +24,6 @@ // File : SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger_0.cxx // Module : SALOME -using namespace std; #include "SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger.hxx" #ifndef _Standard_NoSuchObject_HeaderFile @@ -45,7 +44,8 @@ using namespace std; #ifndef _SALOME_DataMapNodeOfDataMapOfIOMapOfInteger_HeaderFile #include "SALOME_DataMapNodeOfDataMapOfIOMapOfInteger.hxx" #endif - +using namespace std; + #define TheKey Handle_SALOME_InteractiveObject #define TheKey_hxx "SALOME_InteractiveObject.hxx" diff --git a/src/SALOMEGUI/SALOME_DataMapNodeOfDataMapOfIOMapOfInteger_0.cxx b/src/SALOMEGUI/SALOME_DataMapNodeOfDataMapOfIOMapOfInteger_0.cxx index d4d843fe0..4cab4c88e 100644 --- a/src/SALOMEGUI/SALOME_DataMapNodeOfDataMapOfIOMapOfInteger_0.cxx +++ b/src/SALOMEGUI/SALOME_DataMapNodeOfDataMapOfIOMapOfInteger_0.cxx @@ -24,7 +24,6 @@ // File : SALOME_DataMapNodeOfDataMapOfIOMapOfInteger_0.cxx // Module : SALOME -using namespace std; #include "SALOME_DataMapNodeOfDataMapOfIOMapOfInteger.hxx" #ifndef _Standard_TypeMismatch_HeaderFile @@ -46,6 +45,7 @@ using namespace std; #ifndef _SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger_HeaderFile #include "SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger.hxx" #endif +using namespace std; SALOME_DataMapNodeOfDataMapOfIOMapOfInteger::~SALOME_DataMapNodeOfDataMapOfIOMapOfInteger() {} diff --git a/src/SALOMEGUI/SALOME_DataMapOfIOMapOfInteger_0.cxx b/src/SALOMEGUI/SALOME_DataMapOfIOMapOfInteger_0.cxx index e55a3e490..7ce912510 100644 --- a/src/SALOMEGUI/SALOME_DataMapOfIOMapOfInteger_0.cxx +++ b/src/SALOMEGUI/SALOME_DataMapOfIOMapOfInteger_0.cxx @@ -24,7 +24,6 @@ // File : SALOME_DataMapOfIOMapOfInteger_0.cxx // Module : SALOME -using namespace std; #include "SALOME_DataMapOfIOMapOfInteger.hxx" #ifndef _Standard_DomainError_HeaderFile @@ -48,7 +47,8 @@ using namespace std; #ifndef _SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger_HeaderFile #include "SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger.hxx" #endif - +using namespace std; + #define TheKey Handle_SALOME_InteractiveObject #define TheKey_hxx "SALOME_InteractiveObject.hxx" diff --git a/src/SALOMEGUI/SALOME_Filter.cxx b/src/SALOMEGUI/SALOME_Filter.cxx index 2a095e50a..a6ca25e67 100644 --- a/src/SALOMEGUI/SALOME_Filter.cxx +++ b/src/SALOMEGUI/SALOME_Filter.cxx @@ -26,6 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOME_Filter.ixx" +using namespace std; diff --git a/src/SALOMEGUI/SALOME_ListIO_0.cxx b/src/SALOMEGUI/SALOME_ListIO_0.cxx index 0c5ee6097..14be3eee6 100644 --- a/src/SALOMEGUI/SALOME_ListIO_0.cxx +++ b/src/SALOMEGUI/SALOME_ListIO_0.cxx @@ -24,7 +24,6 @@ // File : SALOME_ListIO_0.cxx // Module : SALOME -using namespace std; #include "SALOME_ListIO.hxx" #ifndef _Standard_NoSuchObject_HeaderFile @@ -39,7 +38,8 @@ using namespace std; #ifndef _SALOME_ListNodeOfListIO_HeaderFile #include "SALOME_ListNodeOfListIO.hxx" #endif - +using namespace std; + #define Item Handle_SALOME_InteractiveObject #define Item_hxx "SALOME_InteractiveObject.hxx" diff --git a/src/SALOMEGUI/SALOME_ListIteratorOfListIO_0.cxx b/src/SALOMEGUI/SALOME_ListIteratorOfListIO_0.cxx index 928d94559..adb55ab72 100644 --- a/src/SALOMEGUI/SALOME_ListIteratorOfListIO_0.cxx +++ b/src/SALOMEGUI/SALOME_ListIteratorOfListIO_0.cxx @@ -24,7 +24,6 @@ // File : SALOME_ListIteratorOfListIO_0.cxx // Module : SALOME -using namespace std; #include "SALOME_ListIteratorOfListIO.hxx" #ifndef _Standard_NoMoreObject_HeaderFile @@ -42,6 +41,7 @@ using namespace std; #ifndef _SALOME_ListNodeOfListIO_HeaderFile #include "SALOME_ListNodeOfListIO.hxx" #endif +using namespace std; #define Item Handle_SALOME_InteractiveObject diff --git a/src/SALOMEGUI/SALOME_ListIteratorOfListOfFilter_0.cxx b/src/SALOMEGUI/SALOME_ListIteratorOfListOfFilter_0.cxx index 95cba8a29..57a0e587b 100644 --- a/src/SALOMEGUI/SALOME_ListIteratorOfListOfFilter_0.cxx +++ b/src/SALOMEGUI/SALOME_ListIteratorOfListOfFilter_0.cxx @@ -24,7 +24,6 @@ // File : SALOME_ListIteratorOfListOfFilter_0.cxx // Module : SALOME -using namespace std; #include "SALOME_ListIteratorOfListOfFilter.hxx" #ifndef _Standard_NoMoreObject_HeaderFile @@ -42,6 +41,7 @@ using namespace std; #ifndef _SALOME_ListNodeOfListOfFilter_HeaderFile #include "SALOME_ListNodeOfListOfFilter.hxx" #endif +using namespace std; #define Item Handle_SALOME_Filter diff --git a/src/SALOMEGUI/SALOME_ListNodeOfListIO_0.cxx b/src/SALOMEGUI/SALOME_ListNodeOfListIO_0.cxx index 95147d20d..35f04d576 100644 --- a/src/SALOMEGUI/SALOME_ListNodeOfListIO_0.cxx +++ b/src/SALOMEGUI/SALOME_ListNodeOfListIO_0.cxx @@ -24,7 +24,6 @@ // File : SALOME_ListNodeOfListIO_0.cxx // Module : SALOME -using namespace std; #include "SALOME_ListNodeOfListIO.hxx" #ifndef _Standard_TypeMismatch_HeaderFile @@ -40,6 +39,7 @@ using namespace std; #ifndef _SALOME_ListIteratorOfListIO_HeaderFile #include "SALOME_ListIteratorOfListIO.hxx" #endif +using namespace std; SALOME_ListNodeOfListIO::~SALOME_ListNodeOfListIO() {} diff --git a/src/SALOMEGUI/SALOME_ListNodeOfListOfFilter_0.cxx b/src/SALOMEGUI/SALOME_ListNodeOfListOfFilter_0.cxx index b89c9d1e7..23afd5801 100644 --- a/src/SALOMEGUI/SALOME_ListNodeOfListOfFilter_0.cxx +++ b/src/SALOMEGUI/SALOME_ListNodeOfListOfFilter_0.cxx @@ -24,7 +24,6 @@ // File : SALOME_ListNodeOfListOfFilter_0.cxx // Module : SALOME -using namespace std; #include "SALOME_ListNodeOfListOfFilter.hxx" #ifndef _Standard_TypeMismatch_HeaderFile @@ -40,6 +39,7 @@ using namespace std; #ifndef _SALOME_ListIteratorOfListOfFilter_HeaderFile #include "SALOME_ListIteratorOfListOfFilter.hxx" #endif +using namespace std; SALOME_ListNodeOfListOfFilter::~SALOME_ListNodeOfListOfFilter() {} diff --git a/src/SALOMEGUI/SALOME_ListOfFilter_0.cxx b/src/SALOMEGUI/SALOME_ListOfFilter_0.cxx index 6dbbdaacf..8b30df9f6 100644 --- a/src/SALOMEGUI/SALOME_ListOfFilter_0.cxx +++ b/src/SALOMEGUI/SALOME_ListOfFilter_0.cxx @@ -24,7 +24,6 @@ // File : SALOME_ListOfFilter_0.cxx // Module : SALOME -using namespace std; #include "SALOME_ListOfFilter.hxx" #ifndef _Standard_NoSuchObject_HeaderFile @@ -39,6 +38,7 @@ using namespace std; #ifndef _SALOME_ListNodeOfListOfFilter_HeaderFile #include "SALOME_ListNodeOfListOfFilter.hxx" #endif +using namespace std; #define Item Handle_SALOME_Filter diff --git a/src/SALOMEGUI/SALOME_NumberFilter.cxx b/src/SALOMEGUI/SALOME_NumberFilter.cxx index 3574d8d64..cdc63948e 100644 --- a/src/SALOMEGUI/SALOME_NumberFilter.cxx +++ b/src/SALOMEGUI/SALOME_NumberFilter.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOME_NumberFilter.ixx" #include "SALOME_Selection.h" #include "SALOME_InteractiveObject.hxx" @@ -34,6 +33,7 @@ using namespace std; #include "QAD_Application.h" #include "QAD_Desktop.h" #include "QAD_Study.h" +using namespace std; SALOME_NumberFilter::SALOME_NumberFilter(NumberFilter TheKind, Standard_Integer aValue): myKind(TheKind), diff --git a/src/SALOMEGUI/SALOME_TypeFilter.cxx b/src/SALOMEGUI/SALOME_TypeFilter.cxx index 4bc2a5246..83f1d71ec 100644 --- a/src/SALOMEGUI/SALOME_TypeFilter.cxx +++ b/src/SALOMEGUI/SALOME_TypeFilter.cxx @@ -26,9 +26,9 @@ // Module : SALOME // $Header$ -using namespace std; #include "SALOME_TypeFilter.ixx" #include "SALOME_InteractiveObject.hxx" +using namespace std; SALOME_TypeFilter::SALOME_TypeFilter(const Standard_CString TheKind): myKind(TheKind){} diff --git a/src/SALOMELocalTrace/LocalTraceBufferPool.cxx b/src/SALOMELocalTrace/LocalTraceBufferPool.cxx index 73046c6ec..8a997221a 100644 --- a/src/SALOMELocalTrace/LocalTraceBufferPool.cxx +++ b/src/SALOMELocalTrace/LocalTraceBufferPool.cxx @@ -30,12 +30,12 @@ #include "LocalTraceBufferPool.hxx" #include "utilities.h" +using namespace std; + // In case of truncated message, end of trace contains "...\n\0" #define TRUNCATED_MESSAGE "...\n" #define MAXMESS_LENGTH MAX_TRACE_LENGTH-5 -using namespace std; - LocalTraceBufferPool* LocalTraceBufferPool::_singleton = 0; pthread_mutex_t LocalTraceBufferPool::_singletonMutex; diff --git a/src/SALOMELocalTrace/utilities.h b/src/SALOMELocalTrace/utilities.h index 94543b9f2..28696612b 100644 --- a/src/SALOMELocalTrace/utilities.h +++ b/src/SALOMELocalTrace/utilities.h @@ -36,7 +36,6 @@ #include #include -using namespace std; #include "LocalTraceBufferPool.hxx" @@ -52,7 +51,7 @@ using namespace std; * thread waken up is not garanteed (no fifo or priority rules in Linux Kernel) */ -#define MESS_INIT(deb) ostringstream os; os<insert(NORMAL_MESS, os.str().c_str()); #define MESS_ABORT endl; LocalTraceBufferPool::instance()->insert(ABORT_MESS, os.str().c_str()); @@ -62,7 +61,7 @@ using namespace std; #define INFOS(msg) {MESS_BEGIN("- Trace ") << msg << MESS_END} #define PYSCRIPT(msg) {MESS_INIT("---PYSCRIPT--- ") << msg << MESS_END} #define INTERRUPTION(msg) {MESS_BEGIN("- INTERRUPTION: ")<< msg << MESS_ABORT} -#define IMMEDIATE_ABORT(code) {cout < @@ -20,6 +19,7 @@ using namespace std; #include "QAD_Config.h" #include "QAD_Settings.h" +using namespace std; QWidget* SalomePyQt::getDesktop() { diff --git a/src/SUPERVGraph/SUPERVGraph.cxx b/src/SUPERVGraph/SUPERVGraph.cxx index 140853bb9..70524b061 100644 --- a/src/SUPERVGraph/SUPERVGraph.cxx +++ b/src/SUPERVGraph/SUPERVGraph.cxx @@ -26,9 +26,9 @@ // Module : SALOME // $Header$ -using namespace std; #include "SUPERVGraph.h" #include "SUPERVGraph_ViewFrame.h" +using namespace std; QAD_ViewFrame* SUPERVGraph::createView(QAD_RightFrame* parent) { diff --git a/src/SUPERVGraph/SUPERVGraph_Graph.cxx b/src/SUPERVGraph/SUPERVGraph_Graph.cxx index f312dbcde..9d0c6baab 100644 --- a/src/SUPERVGraph/SUPERVGraph_Graph.cxx +++ b/src/SUPERVGraph/SUPERVGraph_Graph.cxx @@ -25,7 +25,6 @@ // Author : Francis KLOSS // Module : SALOME -using namespace std; #include "SUPERVGraph_Graph.h" #include "QAD_Settings.h" @@ -33,6 +32,7 @@ using namespace std; #include #include +using namespace std; SUPERVGraph_Graph::SUPERVGraph_Graph(QWidget* parent) : diff --git a/src/SUPERVGraph/SUPERVGraph_ViewFrame.cxx b/src/SUPERVGraph/SUPERVGraph_ViewFrame.cxx index 7a73fff3e..7e125178a 100644 --- a/src/SUPERVGraph/SUPERVGraph_ViewFrame.cxx +++ b/src/SUPERVGraph/SUPERVGraph_ViewFrame.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "SUPERVGraph_ViewFrame.h" #include "QAD_Settings.h" @@ -40,6 +39,7 @@ using namespace std; //QT Include #include #include +using namespace std; SUPERVGraph_View::SUPERVGraph_View(QWidget* theParent): QWidget(theParent){ init(theParent); diff --git a/src/Session/SALOME_Session_QThread.cxx b/src/Session/SALOME_Session_QThread.cxx index 76cfaeb41..9b1e5d95f 100644 --- a/src/Session/SALOME_Session_QThread.cxx +++ b/src/Session/SALOME_Session_QThread.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include #include @@ -48,6 +47,7 @@ using namespace std; #include "Utils_CorbaException.hxx" #include #include CORBA_SERVER_HEADER(SALOMEDS) +using namespace std; //============================================================================= /*! SALOME_Session_QThread diff --git a/src/Session/SALOME_Session_Server.cxx b/src/Session/SALOME_Session_Server.cxx index 2a8522145..c78fb6763 100644 --- a/src/Session/SALOME_Session_Server.cxx +++ b/src/Session/SALOME_Session_Server.cxx @@ -60,6 +60,7 @@ #include "SALOME_Session_i.hxx" #include "Session_ServerLauncher.hxx" +using namespace std; extern "C" int HandleSignals(QApplication *theQApplication); diff --git a/src/Session/SALOME_Session_SignalsHandler.cxx b/src/Session/SALOME_Session_SignalsHandler.cxx index c02f6132a..8b0dec803 100644 --- a/src/Session/SALOME_Session_SignalsHandler.cxx +++ b/src/Session/SALOME_Session_SignalsHandler.cxx @@ -22,6 +22,7 @@ #include #include "CASCatch_SignalsHandler.h" // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC +using namespace std; extern "C" int HandleSignals(QApplication *theQApplication) diff --git a/src/Session/Session_ServerLauncher.cxx b/src/Session/Session_ServerLauncher.cxx index 8cbfce4de..82a8c6733 100644 --- a/src/Session/Session_ServerLauncher.cxx +++ b/src/Session/Session_ServerLauncher.cxx @@ -30,6 +30,7 @@ #include "Utils_SALOME_Exception.hxx" #include "utilities.h" +using namespace std; //============================================================================= /*! diff --git a/src/Session/Session_ServerLauncher.hxx b/src/Session/Session_ServerLauncher.hxx index 45804e17d..e5c112322 100644 --- a/src/Session/Session_ServerLauncher.hxx +++ b/src/Session/Session_ServerLauncher.hxx @@ -38,7 +38,6 @@ #include #include -using namespace std; class ServArg { @@ -78,9 +77,9 @@ private: PortableServer::POA_var _root_poa; QMutex* _GUIMutex; QWaitCondition *_ServerLaunch; - list _argServToLaunch; - vector _argCopy; - list _serverThreads; + std::list _argServToLaunch; + std::vector _argCopy; + std::list _serverThreads; }; #endif diff --git a/src/Session/Session_ServerThread.hxx b/src/Session/Session_ServerThread.hxx index b7dfc2c86..e67ee7fe8 100644 --- a/src/Session/Session_ServerThread.hxx +++ b/src/Session/Session_ServerThread.hxx @@ -30,12 +30,10 @@ #define _SESSION_SERVERTHREAD_HXX_ #include -#include #include "SALOME_NamingService.hxx" #include -using namespace std; class Session_ServerThread { diff --git a/src/TOOLSDS/SALOMEDS_Tool.cxx b/src/TOOLSDS/SALOMEDS_Tool.cxx index f14dcade0..4e07ddf04 100644 --- a/src/TOOLSDS/SALOMEDS_Tool.cxx +++ b/src/TOOLSDS/SALOMEDS_Tool.cxx @@ -1,4 +1,3 @@ -using namespace std; // File : SALOMEDS_Tool.cxx // Created : Mon Oct 21 16:24:34 2002 // Author : Sergey RUIN @@ -26,6 +25,7 @@ using namespace std; #include #include +using namespace std; //============================================================================ // function : GetTempDir diff --git a/src/TOOLSGUI/ToolsGUI.cxx b/src/TOOLSGUI/ToolsGUI.cxx index 4b2f47089..7e98ad7b1 100644 --- a/src/TOOLSGUI/ToolsGUI.cxx +++ b/src/TOOLSGUI/ToolsGUI.cxx @@ -26,13 +26,13 @@ // Module : SALOME // $Header$ -using namespace std; #include "ToolsGUI.h" #include "ToolsGUI_CatalogGeneratorDlg.h" #include "utilities.h" #include +using namespace std; int ToolsGUI::runCommand(string & arg) { diff --git a/src/TestContainer/SALOME_TestComponent_i.cxx b/src/TestContainer/SALOME_TestComponent_i.cxx index cca19c31a..3c765b45c 100644 --- a/src/TestContainer/SALOME_TestComponent_i.cxx +++ b/src/TestContainer/SALOME_TestComponent_i.cxx @@ -26,12 +26,12 @@ // Module : SALOME // $Header$ -using namespace std; #include "utilities.h" #include "SALOME_TestComponent_i.hxx" #include #include #include +using namespace std; Engines_TestComponent_i::Engines_TestComponent_i(CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, diff --git a/src/TestContainer/TestLogger.cxx b/src/TestContainer/TestLogger.cxx index 8b73720de..d5756b4cf 100644 --- a/src/TestContainer/TestLogger.cxx +++ b/src/TestContainer/TestLogger.cxx @@ -26,13 +26,13 @@ // Module : SALOME // $Header$ -using namespace std; #include "utilities.h" #include #include #include #include "SALOME_NamingService.hxx" #include "OpUtil.hxx" +using namespace std; int main (int argc, char * argv[]) { diff --git a/src/TestMPIContainer/TestMPIContainer.cxx b/src/TestMPIContainer/TestMPIContainer.cxx index 3f753af5d..b195a0199 100644 --- a/src/TestMPIContainer/TestMPIContainer.cxx +++ b/src/TestMPIContainer/TestMPIContainer.cxx @@ -20,6 +20,7 @@ # include "Utils_SINGLETON.hxx" #include "SALOME_NamingService.hxx" #include "OpUtil.hxx" +using namespace std; int main (int argc, char * argv[]) { diff --git a/src/Utils/Utils_CommException.cxx b/src/Utils/Utils_CommException.cxx index d4e953d86..15af581ee 100644 --- a/src/Utils/Utils_CommException.cxx +++ b/src/Utils/Utils_CommException.cxx @@ -26,8 +26,8 @@ // Module : SALOME // $Header$ -using namespace std; # include "Utils_CommException.hxx" +using namespace std; CommException::CommException( void ): SALOME_Exception( "CommException" ) { diff --git a/src/Utils/Utils_CorbaException.hxx b/src/Utils/Utils_CorbaException.hxx index d785f16d1..44d642b86 100644 --- a/src/Utils/Utils_CorbaException.hxx +++ b/src/Utils/Utils_CorbaException.hxx @@ -45,9 +45,9 @@ throw SALOME::SALOME_Exception(ExDescription); \ } -#include +#include //Dump the CORBA exception type. -static ostream& operator<<(ostream& os, const CORBA::Exception& e) +static std::ostream& operator<<(std::ostream& os, const CORBA::Exception& e) { CORBA::Any tmp; tmp<<= e; diff --git a/src/Utils/Utils_DESTRUCTEUR_GENERIQUE.cxx b/src/Utils/Utils_DESTRUCTEUR_GENERIQUE.cxx index dbe9f1ba3..268aa1f30 100644 --- a/src/Utils/Utils_DESTRUCTEUR_GENERIQUE.cxx +++ b/src/Utils/Utils_DESTRUCTEUR_GENERIQUE.cxx @@ -36,6 +36,8 @@ extern "C" # include "Utils_DESTRUCTEUR_GENERIQUE.hxx" # include "utilities.h" +using namespace std; + void Nettoyage(); #ifdef _DEBUG_ @@ -44,8 +46,6 @@ static int MYDEBUG = 0; static int MYDEBUG = 0; #endif -using namespace std; - static list *Destructeurs=0 ; /*! \class ATEXIT_ diff --git a/src/Utils/Utils_ExceptHandlers.cxx b/src/Utils/Utils_ExceptHandlers.cxx index 2e9b09567..d3f144e34 100644 --- a/src/Utils/Utils_ExceptHandlers.cxx +++ b/src/Utils/Utils_ExceptHandlers.cxx @@ -11,6 +11,8 @@ #include #include CORBA_SERVER_HEADER(SALOME_Exception) +using namespace std; + void SalomeException () { throw SALOME_Exception("Salome Exception"); diff --git a/src/Utils/Utils_SALOME_Exception.cxx b/src/Utils/Utils_SALOME_Exception.cxx index 8f26985a1..6db802be8 100644 --- a/src/Utils/Utils_SALOME_Exception.cxx +++ b/src/Utils/Utils_SALOME_Exception.cxx @@ -26,10 +26,10 @@ // Module : SALOME // $Header$ -using namespace std; #include #include "Utils_SALOME_Exception.hxx" #include "utilities.h" +using namespace std; extern "C" { #include diff --git a/src/Utils/Utils_SignalsHandler.cxx b/src/Utils/Utils_SignalsHandler.cxx index d72879e4b..a76eb3eaf 100644 --- a/src/Utils/Utils_SignalsHandler.cxx +++ b/src/Utils/Utils_SignalsHandler.cxx @@ -24,6 +24,7 @@ #include #include "Utils_SignalsHandler.h" +using namespace std; //============================================================================ @@ -87,7 +88,8 @@ Utils_SignalsHandler::Utils_SignalsHandler() StoreSignalHandler(mySigHandlerCont,SIGTERM); // termination StoreSignalHandler(mySigHandlerCont,SIGSEGV); // segmentation //StoreSignalHandler(mySigHandlerCont,SIGABRT); // abort (ANSI). - StoreSignalHandler(mySigHandlerCont,SIGSTKFLT); // stack fault. + // portage CCRT + // StoreSignalHandler(mySigHandlerCont,SIGSTKFLT); // stack fault. } diff --git a/src/Utils/Utils_Timer.cxx b/src/Utils/Utils_Timer.cxx index f594aba9b..67153429e 100644 --- a/src/Utils/Utils_Timer.cxx +++ b/src/Utils/Utils_Timer.cxx @@ -25,10 +25,10 @@ // Module : SALOME # include "Utils_Timer.hxx" -# include -using namespace std; +# include #include "utilities.h" +using namespace std; static struct timezone *tz=(struct timezone*) malloc(sizeof(struct timezone)); diff --git a/src/VTKFilter/SALOME_GeometryFilter.cxx b/src/VTKFilter/SALOME_GeometryFilter.cxx index d61f825e0..05e18db03 100644 --- a/src/VTKFilter/SALOME_GeometryFilter.cxx +++ b/src/VTKFilter/SALOME_GeometryFilter.cxx @@ -43,6 +43,7 @@ #include #include #include +using namespace std; #ifdef _DEBUG_ static int MYDEBUG = 0; diff --git a/src/VTKFilter/SALOME_PassThroughFilter.cxx b/src/VTKFilter/SALOME_PassThroughFilter.cxx index f1ee7c5e9..daaf36ab9 100644 --- a/src/VTKFilter/SALOME_PassThroughFilter.cxx +++ b/src/VTKFilter/SALOME_PassThroughFilter.cxx @@ -32,6 +32,7 @@ #include #include #include +using namespace std; vtkCxxRevisionMacro(SALOME_PassThroughFilter, "$Revision$"); vtkStandardNewMacro(SALOME_PassThroughFilter); diff --git a/src/VTKFilter/SALOME_ShrinkFilter.cxx b/src/VTKFilter/SALOME_ShrinkFilter.cxx index 1ea45c86f..7d9d8b18b 100644 --- a/src/VTKFilter/SALOME_ShrinkFilter.cxx +++ b/src/VTKFilter/SALOME_ShrinkFilter.cxx @@ -34,6 +34,7 @@ #include #include #include +using namespace std; #ifdef _DEBUG_ static int MYDEBUG = 0; diff --git a/src/VTKViewer/VTKViewer.cxx b/src/VTKViewer/VTKViewer.cxx index 796028060..a0c60854e 100644 --- a/src/VTKViewer/VTKViewer.cxx +++ b/src/VTKViewer/VTKViewer.cxx @@ -26,9 +26,9 @@ // Module : SALOME // $Header$ -using namespace std; #include "VTKViewer.h" #include "VTKViewer_ViewFrame.h" +using namespace std; QAD_ViewFrame* VTKViewer::createView(QAD_RightFrame* parent) { diff --git a/src/VTKViewer/VTKViewer_Filter.cxx b/src/VTKViewer/VTKViewer_Filter.cxx index 8c09a46c4..c0c5f7d81 100755 --- a/src/VTKViewer/VTKViewer_Filter.cxx +++ b/src/VTKViewer/VTKViewer_Filter.cxx @@ -26,6 +26,7 @@ // Module : SALOME #include "VTKViewer_Filter.h" +using namespace std; IMPLEMENT_STANDARD_HANDLE(VTKViewer_Filter, MMgt_TShared) IMPLEMENT_STANDARD_RTTIEXT(VTKViewer_Filter, MMgt_TShared) diff --git a/src/VTKViewer/VTKViewer_Prs.cxx b/src/VTKViewer/VTKViewer_Prs.cxx index 4d048c609..dec6b008a 100644 --- a/src/VTKViewer/VTKViewer_Prs.cxx +++ b/src/VTKViewer/VTKViewer_Prs.cxx @@ -27,6 +27,7 @@ // $Header$ #include "VTKViewer_Prs.h" +using namespace std; //========================================================== /*! diff --git a/src/VTKViewer/VTKViewer_RenderWindow.cxx b/src/VTKViewer/VTKViewer_RenderWindow.cxx index 46e3dba3f..08dbc0eda 100644 --- a/src/VTKViewer/VTKViewer_RenderWindow.cxx +++ b/src/VTKViewer/VTKViewer_RenderWindow.cxx @@ -26,7 +26,6 @@ // Module : SALOME // $Header$ -using namespace std; #include "VTKViewer_RenderWindow.h" #include "utilities.h" #include "QAD_Settings.h" @@ -54,6 +53,7 @@ using namespace std; #if QT_VERSION > 300 #include #endif +using namespace std; VTKViewer_RenderWindow::VTKViewer_RenderWindow(QWidget *parent, const char *name) : QWidget(parent, name, diff --git a/src/VTKViewer/VTKViewer_VectorText.cxx b/src/VTKViewer/VTKViewer_VectorText.cxx index ae19d948d..d0ee379d6 100644 --- a/src/VTKViewer/VTKViewer_VectorText.cxx +++ b/src/VTKViewer/VTKViewer_VectorText.cxx @@ -24,6 +24,7 @@ #include "vtkObjectFactory.h" #include "vtkPoints.h" #include "vtkPolyData.h" +using namespace std; vtkCxxRevisionMacro(VTKViewer_VectorText, "$Revision$"); vtkStandardNewMacro(VTKViewer_VectorText); -- 2.39.2