Salome HOME
PR: mergefrom_BR_CCRT_11Nov04
authorprascle <prascle>
Fri, 12 Nov 2004 07:27:44 +0000 (07:27 +0000)
committerprascle <prascle>
Fri, 12 Nov 2004 07:27:44 +0000 (07:27 +0000)
318 files changed:
configure.in.base
idl/Makefile.in
salome_adm/unix/config_files/ac_cxx_depend_flag.m4
salome_adm/unix/config_files/ac_cxx_option.m4
salome_adm/unix/config_files/check_cas.m4
salome_adm/unix/config_files/check_lam.m4
salome_adm/unix/config_files/check_mpi.m4
salome_adm/unix/config_files/check_mpich.m4
salome_adm/unix/config_files/check_pthreads.m4
salome_adm/unix/config_files/check_sip.m4
salome_adm/unix/config_files/check_vtk.m4
salome_adm/unix/config_files/production.m4
salome_adm/unix/config_files/python.m4
salome_adm/unix/make_commence.in
src/Batch/Batch_APIInternalFailureException.cxx
src/Batch/Batch_APIInternalFailureException.hxx
src/Batch/Batch_BatchManager.cxx
src/Batch/Batch_BatchManager.hxx
src/Batch/Batch_BatchManagerCatalog.cxx
src/Batch/Batch_BatchManagerCatalog.hxx
src/Batch/Batch_BatchManager_PBS.cxx
src/Batch/Batch_BatchManager_PBS.hxx
src/Batch/Batch_BoolType.cxx
src/Batch/Batch_BoolType.hxx
src/Batch/Batch_CharType.cxx
src/Batch/Batch_CharType.hxx
src/Batch/Batch_ConnexionFailureException.cxx
src/Batch/Batch_ConnexionFailureException.hxx
src/Batch/Batch_Couple.cxx
src/Batch/Batch_Couple.hxx
src/Batch/Batch_CoupleType.cxx
src/Batch/Batch_CoupleType.hxx
src/Batch/Batch_Date.cxx
src/Batch/Batch_Date.hxx
src/Batch/Batch_DateType.cxx
src/Batch/Batch_DateType.hxx
src/Batch/Batch_Environnement.cxx
src/Batch/Batch_Environnement.hxx
src/Batch/Batch_FactBatchManager.cxx
src/Batch/Batch_FactBatchManager.hxx
src/Batch/Batch_FactBatchManager_PBS.cxx
src/Batch/Batch_FactBatchManager_PBS.hxx
src/Batch/Batch_GenericException.cxx
src/Batch/Batch_GenericException.hxx
src/Batch/Batch_GenericType.cxx
src/Batch/Batch_GenericType.hxx
src/Batch/Batch_IntType.cxx
src/Batch/Batch_IntType.hxx
src/Batch/Batch_InvalidArgumentException.cxx
src/Batch/Batch_InvalidArgumentException.hxx
src/Batch/Batch_InvalidKeyException.cxx
src/Batch/Batch_InvalidKeyException.hxx
src/Batch/Batch_Job.cxx
src/Batch/Batch_Job.hxx
src/Batch/Batch_JobId.cxx
src/Batch/Batch_JobId.hxx
src/Batch/Batch_JobInfo.cxx
src/Batch/Batch_JobInfo.hxx
src/Batch/Batch_JobInfo_PBS.cxx
src/Batch/Batch_JobInfo_PBS.hxx
src/Batch/Batch_Job_PBS.cxx
src/Batch/Batch_ListIsFullException.cxx
src/Batch/Batch_ListIsFullException.hxx
src/Batch/Batch_LongType.cxx
src/Batch/Batch_LongType.hxx
src/Batch/Batch_MapKey.cxx
src/Batch/Batch_MapKey.hxx
src/Batch/Batch_NotYetImplementedException.hxx
src/Batch/Batch_Parametre.cxx
src/Batch/Batch_Parametre.hxx
src/Batch/Batch_PyVersatile.hxx
src/Batch/Batch_RunTimeException.cxx
src/Batch/Batch_RunTimeException.hxx
src/Batch/Batch_StringType.cxx
src/Batch/Batch_StringType.hxx
src/Batch/Batch_TypeMismatchException.cxx
src/Batch/Batch_TypeMismatchException.hxx
src/Batch/Batch_Versatile.cxx
src/Batch/Batch_Versatile.hxx
src/CASCatch/CASCatch_SignalsHandler.cxx
src/Communication/MultiCommException.cxx
src/Communication/MultiCommException.hxx
src/Communication/Receiver.cxx
src/Communication/ReceiverFactory.cxx
src/Communication/Receivers.cxx
src/Communication/SALOMEMultiComm.cxx
src/Communication/SALOME_Comm_i.cxx
src/Communication/SALOME_Comm_i.hxx
src/Communication/SenderFactory.cxx
src/Container/Component_i.cxx
src/Container/SALOME_Container.cxx
src/Container/SALOME_Container_SignalsHandler.cxx
src/Container/SALOME_Container_i.hxx
src/DataTypeCatalog/SALOME_DataTypeCatalog_Client.cxx
src/DataTypeCatalog/SALOME_DataTypeCatalog_impl.cxx
src/Event/SALOME_Event.cxx
src/HDFPersist/HDFascii.cc
src/HDFPersist/HDFattribute.cc
src/HDFPersist/HDFcontainerObject.cc
src/HDFPersist/HDFconvert.cc
src/HDFPersist/HDFdataset.cc
src/HDFPersist/HDFexplorer.cc
src/HDFPersist/HDFfile.cc
src/HDFPersist/HDFgroup.cc
src/HDFPersist/HDFinternalObject.cc
src/HDFPersist/HDFobject.cc
src/HDFPersist/test3.cxx
src/HDFPersist/test4.cxx
src/HDFPersist/test5.cxx
src/HDFPersist/test6.cxx
src/HDFPersist/test7.cxx
src/HDFPersist/test8.cxx
src/HDFPersist/test9.cxx
src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx
src/LifeCycleCORBA/SALOME_LifeCycleCORBA.hxx
src/LifeCycleCORBA/TestLifeCycleCORBA.cxx
src/Loader/InquireServersQThread.cxx
src/Loader/SALOME_Session_Loader.cxx
src/Logger/SALOME_Logger_Server.cxx
src/Logger/SALOME_Trace.cxx
src/MPIContainer/MPIContainer_i.cxx
src/MPIContainer/MPIContainer_i.hxx
src/MPIContainer/MPIObject_i.cxx
src/MPIContainer/MPIObject_i.hxx
src/MPIContainer/Makefile.in
src/MPIContainer/SALOME_MPIContainer.cxx
src/MPILifeCycleCORBA/SALOME_MPILifeCycleCORBA.cxx
src/MPILifeCycleCORBA/SALOME_MPILifeCycleCORBA.hxx
src/MPILifeCycleCORBA/TestMPILifeCycleCORBA.cxx
src/MSG2QM/msg2qm.cxx
src/Makefile.in
src/ModuleCatalog/SALOME_ModuleCatalog_Handler.cxx
src/NOTIFICATION_SWIG/NOTIFICATION_Swig.cxx
src/NOTIFICATION_SWIG/NOTIFICATION_Swig.hxx
src/NamingService/ServiceUnreachable.cxx
src/Notification/NOTIFICATION.cxx
src/Notification/NOTIFICATION_Consumer.cxx
src/Notification/NOTIFICATION_Supplier.cxx
src/OBJECT/SALOME_AISObject.cxx
src/OBJECT/SALOME_AISShape.cxx
src/OBJECT/SALOME_InteractiveObject.cxx
src/OCCViewer/OCCViewer.cxx
src/OCCViewer/OCCViewer_AISSelector.cxx
src/OCCViewer/OCCViewer_Prs.cxx
src/OCCViewer/OCCViewer_VService.cxx
src/OCCViewer/OCCViewer_ViewFrame.cxx
src/OCCViewer/OCCViewer_ViewPort3d.cxx
src/OCCViewer/OCCViewer_Viewer3d.cxx
src/PatchQt/qsplitterP.cxx
src/PatchQt/qworkspaceP.cxx
src/Plot2d/Plot2d.cxx
src/Plot2d/Plot2d_Curve.cxx
src/Plot2d/Plot2d_CurveContainer.cxx
src/Plot2d/Plot2d_FitDataDlg.cxx
src/Plot2d/Plot2d_Prs.cxx
src/Plot2d/Plot2d_SetupViewDlg.cxx
src/Plot2d/Plot2d_ViewFrame.cxx
src/Registry/RegistryConnexion.cxx
src/Registry/RegistryConnexion.hxx
src/Registry/RegistryService.cxx
src/Registry/RegistryService.hxx
src/RegistryDisplay/HelpWindow.cxx
src/RegistryDisplay/IntervalWindow.cxx
src/RegistryDisplay/IntervalWindow.hxx
src/RegistryDisplay/RegWidget.cxx
src/RegistryDisplay/RegWidgetFactory.cxx
src/RessourcesCatalog/SALOME_RessourcesCatalog_Client.cxx
src/RessourcesCatalog/SALOME_RessourcesCatalog_impl.cxx
src/SALOMEDS/SALOMEDS_AttLong_i.cxx
src/SALOMEDS/SALOMEDS_AttReal_i.cxx
src/SALOMEDS/SALOMEDS_AttributeComment_i.cxx
src/SALOMEDS/SALOMEDS_AttributeDrawable_i.cxx
src/SALOMEDS/SALOMEDS_AttributeExpandable_i.cxx
src/SALOMEDS/SALOMEDS_AttributeExternalFileDef_i.cxx
src/SALOMEDS/SALOMEDS_AttributeFileType_i.cxx
src/SALOMEDS/SALOMEDS_AttributeIOR_i.cxx
src/SALOMEDS/SALOMEDS_AttributeInteger_i.cxx
src/SALOMEDS/SALOMEDS_AttributeLocalID_i.cxx
src/SALOMEDS/SALOMEDS_AttributeName_i.cxx
src/SALOMEDS/SALOMEDS_AttributeOpened_i.cxx
src/SALOMEDS/SALOMEDS_AttributePersistentRef_i.cxx
src/SALOMEDS/SALOMEDS_AttributePixMap_i.cxx
src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx
src/SALOMEDS/SALOMEDS_AttributeSelectable_i.cxx
src/SALOMEDS/SALOMEDS_AttributeSequenceOfInteger_i.cxx
src/SALOMEDS/SALOMEDS_AttributeSequenceOfReal_i.cxx
src/SALOMEDS/SALOMEDS_AttributeStudyProperties_i.cxx
src/SALOMEDS/SALOMEDS_AttributeTableOfInteger_i.cxx
src/SALOMEDS/SALOMEDS_AttributeTableOfReal_i.cxx
src/SALOMEDS/SALOMEDS_AttributeTableOfString_i.cxx
src/SALOMEDS/SALOMEDS_AttributeTarget_i.cxx
src/SALOMEDS/SALOMEDS_AttributeTextColor_i.cxx
src/SALOMEDS/SALOMEDS_AttributeTextHighlightColor_i.cxx
src/SALOMEDS/SALOMEDS_AttributeTreeNode_i.cxx
src/SALOMEDS/SALOMEDS_AttributeUserID_i.cxx
src/SALOMEDS/SALOMEDS_BasicAttributeFactory.cxx
src/SALOMEDS/SALOMEDS_BasicAttribute_i.cxx
src/SALOMEDS/SALOMEDS_ChildIterator_i.cxx
src/SALOMEDS/SALOMEDS_DataMapIteratorOfDataMapOfIntegerString_0.cxx
src/SALOMEDS/SALOMEDS_DataMapIteratorOfDataMapStringLabel_0.cxx
src/SALOMEDS/SALOMEDS_DataMapNodeOfDataMapOfIntegerString_0.cxx
src/SALOMEDS/SALOMEDS_DataMapNodeOfDataMapStringLabel_0.cxx
src/SALOMEDS/SALOMEDS_DataMapOfIntegerString_0.cxx
src/SALOMEDS/SALOMEDS_DataMapStringLabel_0.cxx
src/SALOMEDS/SALOMEDS_DrawableAttribute.cxx
src/SALOMEDS/SALOMEDS_ExpandableAttribute.cxx
src/SALOMEDS/SALOMEDS_GenericAttribute_i.cxx
src/SALOMEDS/SALOMEDS_IORAttribute.cxx
src/SALOMEDS/SALOMEDS_LocalIDAttribute.cxx
src/SALOMEDS/SALOMEDS_OCAFApplication.cxx
src/SALOMEDS/SALOMEDS_OpenedAttribute.cxx
src/SALOMEDS/SALOMEDS_PersRefAttribute.cxx
src/SALOMEDS/SALOMEDS_PixMapAttribute.cxx
src/SALOMEDS/SALOMEDS_PythonObjectAttribute.cxx
src/SALOMEDS/SALOMEDS_SComponentIterator_i.cxx
src/SALOMEDS/SALOMEDS_SComponent_i.cxx
src/SALOMEDS/SALOMEDS_SObject_i.cxx
src/SALOMEDS/SALOMEDS_SelectableAttribute.cxx
src/SALOMEDS/SALOMEDS_SequenceOfIntegerAttribute.cxx
src/SALOMEDS/SALOMEDS_SequenceOfRealAttribute.cxx
src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx
src/SALOMEDS/SALOMEDS_StudyManager_i.cxx
src/SALOMEDS/SALOMEDS_StudyPropertiesAttribute.cxx
src/SALOMEDS/SALOMEDS_Study_i.cxx
src/SALOMEDS/SALOMEDS_TableOfIntegerAttribute.cxx
src/SALOMEDS/SALOMEDS_TableOfRealAttribute.cxx
src/SALOMEDS/SALOMEDS_TableOfStringAttribute.cxx
src/SALOMEDS/SALOMEDS_TargetAttribute.cxx
src/SALOMEDS/SALOMEDS_TextColorAttribute.cxx
src/SALOMEDS/SALOMEDS_TextHighlightColorAttribute.cxx
src/SALOMEDS/SALOMEDS_UseCaseBuilder_i.cxx
src/SALOMEDS/SALOMEDS_UseCaseIterator_i.cxx
src/SALOMEGUI/QAD_Application.cxx
src/SALOMEGUI/QAD_Config.cxx
src/SALOMEGUI/QAD_DirListDlg.cxx
src/SALOMEGUI/QAD_FileDlg.cxx
src/SALOMEGUI/QAD_Help.cxx
src/SALOMEGUI/QAD_HelpWindow.cxx
src/SALOMEGUI/QAD_LeftFrame.cxx
src/SALOMEGUI/QAD_ListMenuIdAction.cxx
src/SALOMEGUI/QAD_ListPopupMenu.cxx
src/SALOMEGUI/QAD_Menus.cxx
src/SALOMEGUI/QAD_Message.cxx
src/SALOMEGUI/QAD_MessageBox.cxx
src/SALOMEGUI/QAD_NameBrowser.cxx
src/SALOMEGUI/QAD_ObjectBrowserItem.cxx
src/SALOMEGUI/QAD_Operation.cxx
src/SALOMEGUI/QAD_OperatorMenus.cxx
src/SALOMEGUI/QAD_ParserSettings.cxx
src/SALOMEGUI/QAD_Popup.cxx
src/SALOMEGUI/QAD_ResourceMgr.cxx
src/SALOMEGUI/QAD_Settings.cxx
src/SALOMEGUI/QAD_SpinBoxDbl.cxx
src/SALOMEGUI/QAD_Splitter.cxx
src/SALOMEGUI/QAD_Tools.cxx
src/SALOMEGUI/QAD_XmlHandler.cxx
src/SALOMEGUI/SALOMEGUI.cxx
src/SALOMEGUI/SALOMEGUI_AboutDlg.cxx
src/SALOMEGUI/SALOMEGUI_ActivateComponentDlg.cxx
src/SALOMEGUI/SALOMEGUI_CloseDlg.cxx
src/SALOMEGUI/SALOMEGUI_Desktop.cxx
src/SALOMEGUI/SALOMEGUI_ExternalBrowserDlg.cxx
src/SALOMEGUI/SALOMEGUI_ImportOperation.cxx
src/SALOMEGUI/SALOMEGUI_LoadStudiesDlg.cxx
src/SALOMEGUI/SALOMEGUI_NameDlg.cxx
src/SALOMEGUI/SALOMEGUI_OpenWith.cxx
src/SALOMEGUI/SALOMEGUI_QtCatchCorbaException.cxx
src/SALOMEGUI/SALOMEGUI_SetValueDlg.cxx
src/SALOMEGUI/SALOMEGUI_SetupCurveDlg.cxx
src/SALOMEGUI/SALOMEGUI_StudyPropertiesDlg.cxx
src/SALOMEGUI/SALOMEGUI_TableDlg.cxx
src/SALOMEGUI/SALOMEGUI_TrihedronSizeDlg.cxx
src/SALOMEGUI/SALOMEGUI_ViewChoiceDlg.cxx
src/SALOMEGUI/SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger_0.cxx
src/SALOMEGUI/SALOME_DataMapNodeOfDataMapOfIOMapOfInteger_0.cxx
src/SALOMEGUI/SALOME_DataMapOfIOMapOfInteger_0.cxx
src/SALOMEGUI/SALOME_Filter.cxx
src/SALOMEGUI/SALOME_ListIO_0.cxx
src/SALOMEGUI/SALOME_ListIteratorOfListIO_0.cxx
src/SALOMEGUI/SALOME_ListIteratorOfListOfFilter_0.cxx
src/SALOMEGUI/SALOME_ListNodeOfListIO_0.cxx
src/SALOMEGUI/SALOME_ListNodeOfListOfFilter_0.cxx
src/SALOMEGUI/SALOME_ListOfFilter_0.cxx
src/SALOMEGUI/SALOME_NumberFilter.cxx
src/SALOMEGUI/SALOME_TypeFilter.cxx
src/SALOMELocalTrace/LocalTraceBufferPool.cxx
src/SALOMELocalTrace/utilities.h
src/SALOME_PYQT/SALOME_PYQT_GUI.cxx
src/SALOME_PYQT/SalomePyQt.cxx
src/SUPERVGraph/SUPERVGraph.cxx
src/SUPERVGraph/SUPERVGraph_Graph.cxx
src/SUPERVGraph/SUPERVGraph_ViewFrame.cxx
src/Session/SALOME_Session_QThread.cxx
src/Session/SALOME_Session_Server.cxx
src/Session/SALOME_Session_SignalsHandler.cxx
src/Session/Session_ServerLauncher.cxx
src/Session/Session_ServerLauncher.hxx
src/Session/Session_ServerThread.hxx
src/TOOLSDS/SALOMEDS_Tool.cxx
src/TOOLSGUI/ToolsGUI.cxx
src/TestContainer/SALOME_TestComponent_i.cxx
src/TestContainer/TestLogger.cxx
src/TestMPIContainer/TestMPIContainer.cxx
src/Utils/Utils_CommException.cxx
src/Utils/Utils_CorbaException.hxx
src/Utils/Utils_DESTRUCTEUR_GENERIQUE.cxx
src/Utils/Utils_ExceptHandlers.cxx
src/Utils/Utils_SALOME_Exception.cxx
src/Utils/Utils_SignalsHandler.cxx
src/Utils/Utils_Timer.cxx
src/VTKFilter/SALOME_GeometryFilter.cxx
src/VTKFilter/SALOME_PassThroughFilter.cxx
src/VTKFilter/SALOME_ShrinkFilter.cxx
src/VTKViewer/VTKViewer.cxx
src/VTKViewer/VTKViewer_Filter.cxx
src/VTKViewer/VTKViewer_Prs.cxx
src/VTKViewer/VTKViewer_RenderWindow.cxx
src/VTKViewer/VTKViewer_VectorText.cxx

index 0eef838db2ab3e6fd9498899f4c078614e488d8a..880355a612a7b0eec58b94076457ce721598ce09 100644 (file)
@@ -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 ---------------------------------------------
index 7de067f7454eff8be80916d2ee980c517707c64a..6e46e61bd1c4b576c0e36f9236923ddafe4736bb 100644 (file)
@@ -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
index 7c87413dd8ef9e9da0412e899d84f00cd1dd6045..9e3d4ecc97e9754f67a361b3464adcc627987b37 100644 (file)
@@ -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)
 ])
index 4219c5a0787051a55265d514b0326f79d8fad037..72ea0ab112824338a063a7c3e6d063a015f86911 100644 (file)
@@ -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 <<EOF
-int main(int argc, char **argv) { return 0; }
+int main() { return 0; }
 EOF
   $CXX $1 conftest.cxx > conftest.log 2>&1
   var=`echo $1 | sed -e "s, .*$,," | sed -e "s,^-,,"`
index 85d8f0c73e3b111c8b5c375b19daa9e226d19499..3b3f654f985c277a0e68ebae50162ddbb4c3193d 100644 (file)
@@ -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 <Standard_Type.hxx>
 ,   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
index ab62ab44a5cd7639e7d31f1f6c26d8ea304eb25e..9a303a054a1b9d4a7d8dbf51c23943bc15aca306 100644 (file)
@@ -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
index 6c68d7053eda52cf4ed1f7faa49cf553cc64ce77..d746ac0554d93a2d3ecc9f6574c7d6264c0f433a 100644 (file)
@@ -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)
index 5b34bcd806519c49d89fcdb85818c8ba2fe5a763..de0e6d50a9d5b6b85c62a924806e7d6d7ab10508 100644 (file)
@@ -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
index 0608c4a40489f029b0f4427288c5c3f74a4b5c0a..983bfc20076571ef473c0a830d5a919f9e9416e4 100644 (file)
@@ -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
index feecb0dde36a765e526746b4d7181d88e4fb6227..48a025918c32991048b7c7714351e774a0ed44a8 100644 (file)
@@ -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"
index 1b1a8d1a1845e3a92347e0306cabfec012e1afdc..4b4b1454fab0c07c93f3cdcb6d164863b686e03a 100644 (file)
@@ -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"
 
index b115b8aab84c79fdddd6c6c918b9f398c7b763d9..1cebe979e09be50fc9793d107fb83bbc9ffa28ac 100644 (file)
@@ -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
 ])
 
index b86c21d35c50295a7a38c58b19950cb4bf2e3a21..b99b9d138009e8ac65a713b033aaa5ddb4f5ea78 100644 (file)
@@ -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
index e421712461fcbcaa5b7618253c2a51f0a87be568..cabebbd71ede02950cdc008bd1b9a76f5916a7d2 100644 (file)
@@ -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)
index 42e52aa9ee12f226416d58b0ee2e31292ee1f81f..ac4f6491b235d8680d5bd5a380759f498cfc5481 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include "Batch_APIInternalFailureException.hxx"
+using namespace std;
 
 namespace Batch {
 
index 14bf01f4faf157b421396c7e6676eb9c707c920b..946851c598cb037945ee9e4de9475c3b75d93e84 100644 (file)
@@ -21,7 +21,7 @@ namespace Batch {
   {
   public:
                // Constructeur
-    APIInternalFailureException(string ch = "undefined") : GenericException("APIInternalFailureException", ch) {}
+    APIInternalFailureException(std::string ch = "undefined") : GenericException("APIInternalFailureException", ch) {}
   };
 
 }
index e84d3bdaf60fc82f5664c8f3e3e83b1fd70b9165..56cae6c300b083b0a473022c110a79c71ba12ffc 100644 (file)
@@ -18,6 +18,7 @@
 #include "Batch_InvalidArgumentException.hxx"
 #include "Batch_FactBatchManager.hxx"
 #include "Batch_BatchManager.hxx"
+using namespace std;
 
 namespace Batch {
 
index 47820ef0b83d247200cd3acb4a59b4eaacb885a6..c132a575a13ede62ac0bf798ba4e2a84ffe9df46 100644 (file)
@@ -10,7 +10,6 @@
 #ifndef _BATCHMANAGER_H_
 #define _BATCHMANAGER_H_
 
-using namespace std;
 #include <string>
 #include <map>
 #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:
index 437be93fb7d6cd0fb89ecfa93b5dda0ec4b2fbaf..6485411bce10a706a23fa813bfa54c4832c8e493 100644 (file)
@@ -12,6 +12,7 @@
 #include <map>
 #include "Batch_BatchManagerCatalog.hxx"
 #include "Batch_FactBatchManager.hxx"
+using namespace std;
 
 namespace Batch {
 
index cff458293be723f7f5b51f891264ef32ec05651d..1857fa0599a94ec3d5181047cc4a51de12fe2f90 100644 (file)
@@ -10,7 +10,6 @@
 #ifndef _CATALOG_H_
 #define _CATALOG_H_
 
-using namespace std;
 #include <string>
 #include <map>
 #include <pthread.h>
@@ -31,11 +30,11 @@ namespace Batch {
     static void addFactBatchManager(const char * type, FactBatchManager * pFBM);
     virtual FactBatchManager * operator() (const char * type) const;
 
-    virtual map<string, FactBatchManager *> * dict() const;
-    virtual string __repr__() const;
+    virtual std::map<std::string, FactBatchManager *> * dict() const;
+    virtual std::string __repr__() const;
 
   protected:
-    static map<string, FactBatchManager *> * _p_catalog;
+    static std::map<std::string, FactBatchManager *> * _p_catalog;
     static pthread_mutex_t _mutex;
 
   private:
index 45fceeddea1d73460c2614f930cf72bbb1f802e6..a4593462976fd178710a350fe21453129d3168ea 100644 (file)
@@ -17,6 +17,7 @@ extern "C" {
 #include <sstream>
 //#include "MEDMEM_STRING.hxx"
 #include "Batch_BatchManager_PBS.hxx"
+using namespace std;
 
 namespace Batch {
 
index 53c7437cc7b14cde927ebc1607f83511d16fe8cc..a8310ecbad95d4cbd9e197ad6bfb1c67aaff9382 100644 (file)
@@ -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
 
index b70696341546faae06ab0762939e2e2bc94add97..6e28f197bb3678dd964ecf3bfc45caf0c4793cd8 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <string>
 #include "Batch_BoolType.hxx"
+using namespace std;
 
 namespace Batch {
 
index 1bb58d16d371b555616c9e47348792b5fdbe49c7..47c61d57be512c623f23a8923cbf1efbf0c79ab3 100644 (file)
@@ -10,7 +10,6 @@
 #ifndef _BOOLTYPE_H_
 #define _BOOLTYPE_H_
 
-using namespace std;
 #include <string>
 #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);
index 66197f84c8cb6182309880723adae2c0ea0769bd..52f64146d9c2369f003570ccfae1bcf65e9e6710 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <string>
 #include "Batch_CharType.hxx"
+using namespace std;
 
 namespace Batch {
 
index 0aae9f45bc190c7f9925ec9b95260043f84fd9fc..ac96bc9501747350319d9f6dc384a2ea196c85a4 100644 (file)
@@ -10,7 +10,6 @@
 #ifndef _CHARTYPE_H_
 #define _CHARTYPE_H_
 
-using namespace std;
 #include <string>
 #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);
index df1096fd943bea980d58eaa7ebec57098aad5847..d78f842c1f133cb817ea09ec70e2406507087762 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include "Batch_ConnexionFailureException.hxx"
+using namespace std;
 
 namespace Batch {
 
index 22d9584b2bb5de98deda1e983fbd74b379c3823a..123241876c1b290ad6fbbdaa290b3c58034e65ab 100644 (file)
@@ -20,7 +20,7 @@ namespace Batch {
   {
   public:
                // Constructeur
-    ConnexionFailureException(string ch = "undefined") : GenericException("ConnexionFailureException", ch) {}
+    ConnexionFailureException(std::string ch = "undefined") : GenericException("ConnexionFailureException", ch) {}
 
   };
 
index 8a08d7040af3abe5995f0845268ef6bf73f34c67..c87ce4fc1bd0047ce154dc2373362d76395ceb30 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include "Batch_Couple.hxx"
+using namespace std;
 
 namespace Batch {
 
index 4efe11762491932521a1f239565c014a36ace198..cd310b4c61d15612e651366f76785c37da4314de 100644 (file)
@@ -11,7 +11,6 @@
 #ifndef _COUPLE_H_
 #define _COUPLE_H_
 
-using namespace std;
 #include <string>
 
 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:
 
index 1de0b21f0e044e4333f29bd4f1b4f0666b6f43a9..2cf112a26df6f3599454d0be10e677fb1c9b5a7c 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include "Batch_CoupleType.hxx"
+using namespace std;
 
 namespace Batch {
 
index a8913d575fa963f878ca6568ddfa78af18e28da6..9d3905be353ca2b20572c52ba8cf6f8bc26de9f5 100644 (file)
@@ -11,7 +11,6 @@
 #ifndef _COUPLETYPE_H_
 #define _COUPLETYPE_H_
 
-using namespace std;
 #include <string>
 #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);
index 9ac52b12d3a356213f29043acfe76e6f397250f9..9c48d233db3d09573c1e4c862211a4375a3ef777 100644 (file)
@@ -11,6 +11,7 @@
 #include <cstdio>
 #include <ctime>
 #include "Batch_Date.hxx"
+using namespace std;
 
 namespace Batch {
 
index 0091850d1a994fe7f7092df743e8b65f1e60f1a7..cef80cc5ad89a4d1b9e43ce1528ecf508d6f8e0b 100644 (file)
@@ -11,7 +11,6 @@
 #ifndef _DATE_H_
 #define _DATE_H_
 
-using namespace std;
 #include <string>
 
 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:
index fac8830d6f5dd9b036213a6b924999a10ac096ad..4e08dd2a5e3bb5575979249d6b5805700df58559 100644 (file)
@@ -11,6 +11,7 @@ extern "C" {
 #include <time.h>
 }
 #include "Batch_DateType.hxx"
+using namespace std;
 
 namespace Batch {
 
index 8682720866d6a33f7051c73d50bb716136e0505b..b94cdb2a82b2aeeb5a46824a80546c3c417a0033 100644 (file)
@@ -11,7 +11,6 @@
 #ifndef _DATETYPE_H_
 #define _DATETYPE_H_
 
-using namespace std;
 #include <string>
 #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 &);
index d658d3855662c5e09c2733c7b77e73662decbd71..24155decb07ec65eeb768cd4f358e1e4398a8374 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include "Batch_Environnement.hxx"
+using namespace std;
 
 namespace Batch {
 
index cda22aeff23809e2b0ae102cd5878a9658afc377..e136996f627fe795636bfb48b4f63f0a2ea86615 100644 (file)
 #define _ENVIRONNEMENT_H_
 
 
-using namespace std;
 #include <string>
 #include <map>
 
 namespace Batch {
 
-  typedef map < string, string > Environnement;
+  typedef std::map < std::string, std::string > Environnement;
 
 }
 
index c8123cbfd263b6259d28f9fccafcb02b4fea51a5..ba1d5e83952f9570e1aed8b58051bf0604b8d0d6 100644 (file)
@@ -12,6 +12,7 @@
 #include "Batch_BatchManagerCatalog.hxx"
 #include "Batch_FactBatchManager.hxx"
 #include "utilities.h"
+using namespace std;
 
 namespace Batch {
 
index 4e428234468a85d0ef56829924ccdf4964ddfd88..2a662d73ca4b92072ecd0c3c9cf3401f038baba9 100644 (file)
@@ -10,7 +10,6 @@
 #ifndef _FACTBATCHMANAGER_H_
 #define _FACTBATCHMANAGER_H_
 
-using namespace std;
 #include <string>
 #include <map>
 
@@ -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:
 
index 3a0e39763d56ad5c9bdee5ff43f5d198be1c0f6f..d2ded29ca780ad7b2198e007d36218258d023943 100644 (file)
@@ -11,6 +11,7 @@
 #include "Batch_BatchManager_PBS.hxx"
 #include "Batch_FactBatchManager_PBS.hxx"
 #include "utilities.h"
+using namespace std;
 
 namespace Batch {
 
index 55d4bec90cb8081e2ad5acfffabed5e9e73cffa4..fdf053c1b116a448e5c48f23c0471e03ce42251d 100644 (file)
@@ -10,9 +10,6 @@
 #ifndef _FACTBATCHMANAGER_PBS_H_
 #define _FACTBATCHMANAGER_PBS_H_
 
-using namespace std;
-#include <string>
-#include <map>
 #include "Batch_FactBatchManager.hxx"
 
 namespace Batch {
index 6cf7a935f4d9a53b00259b6557a4d4d0bf033875..e9f8ffb755fe1763698ff1c1e16fa1197da0a5f1 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include "Batch_GenericException.hxx"
+using namespace std;
 
 namespace Batch {
 
index 59ecd841332f3b9e86f433d52318003bdf7afd37..dae5525d37c2b734b86d8df682d35d8ed3f26bf0 100644 (file)
@@ -12,7 +12,6 @@
 #define _GENERICEXCEPTION_H_
 
 
-using namespace std;
 #include <string>
 
 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) {}
   };
 
 }
index 997222a73c1b952054278a9c8c1e342bc531cb90..dc00c838f8d756e146a1e74e9d939c9243882801 100644 (file)
@@ -11,6 +11,7 @@
 #include <iostream>
 #include <string>
 #include "Batch_GenericType.hxx"
+using namespace std;
 
 namespace Batch {
 
index 5a3dfe28e5f25977e019cebb69ac04c940f5087d..9dea3060183a92c76ab7c4d6f9db91522453029c 100644 (file)
@@ -11,7 +11,6 @@
 #define _GENERICTYPE_H_
 
 
-using namespace std;
 #include <iostream>
 #include <string>
 
@@ -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
index b5b1eb9cb9d2efe9149b5e5b11bfb543b88b269a..a9aa692ffebb36fdd50c5bce019401b2b7d6ee82 100644 (file)
@@ -11,6 +11,7 @@
 #include <sstream>
 //#include "MEDMEM_STRING.hxx"
 #include "Batch_IntType.hxx"
+using namespace std;
 
 
 namespace Batch {
index 6d07fe50fea39fd9d441ce5829494f571ded3ed3..87dc862e7b77cb7163106e313f8664de32155ede 100644 (file)
@@ -10,7 +10,6 @@
 #ifndef _INTTYPE_H_
 #define _INTTYPE_H_
 
-using namespace std;
 #include <string>
 #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);
index fa077bcbbd3f0f3c1534e3b2471b391ec6876281..b985a7f5ed039f1d5bfe3812e1feb45c60f75d7e 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include "Batch_InvalidArgumentException.hxx"
+using namespace std;
 
 namespace Batch {
 
index 62a972bd40a77e9e82ba5e6644ce6e42e5380a62..9f83ba9d7e91f0d7a281704245a43d4dc3733f9f 100644 (file)
@@ -21,7 +21,7 @@ namespace Batch {
   {
   public:
                // Constructeur
-    InvalidArgumentException(string ch = "undefined") : GenericException("InvalidArgumentException", ch) {}
+    InvalidArgumentException(std::string ch = "undefined") : GenericException("InvalidArgumentException", ch) {}
   };
 
 }
index bec522ef942c746de11e31a7f9bc1343299700de..c600c2304f3336e4e178f20f9150b82a93fbda87 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include "Batch_InvalidKeyException.hxx"
+using namespace std;
 
 namespace Batch {
 
index 8e0c45b9c63f40e81c070d56304724e45ebe47c0..0fa548f1d89c8fa776d7d57f6462f1c81115ee81 100644 (file)
@@ -21,7 +21,7 @@ namespace Batch {
   {
   public:
                // Constructeur
-    InvalidKeyException(string ch = "undefined") : GenericException("InvalidKeyException", ch) {}
+    InvalidKeyException(std::string ch = "undefined") : GenericException("InvalidKeyException", ch) {}
 
   protected:
 
index 6fa203ed500e8107e8ff27757cacccfd9f07596a..77f8126e116f830f69b6f01597e65dbcbc1f82a5 100644 (file)
@@ -11,6 +11,7 @@
 #include "Batch_Parametre.hxx"
 #include <sstream>
 //#include "MEDMEM_STRING.hxx"
+using namespace std;
 
 namespace Batch {
 
index efd8a90ce38f470b961ae12fe309e307046ab1b6..66fdf04947b1fc9c9b72ca521853868c7a6291df 100644 (file)
@@ -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
index f642b4ce2c1c64a599b0af9bb2aef1537d998415..370fe44769477ef960b2ace9d4dbb1e4f178badd 100644 (file)
@@ -11,6 +11,7 @@
 #include "Batch_BatchManager.hxx"
 #include <sstream>
 //#include "MEDMEM_STRING.hxx"
+using namespace std;
 
 namespace Batch {
 
index d2811bc6d487a31a33095ae6c4a34c677beb2647..be14e7f9e7153bf8a725aafb339eefe6fe408d22 100644 (file)
@@ -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:
 
index 3192f21d51a473a1c1b3b2b229ebc554ea48fe0f..87f8143226570168cd2d78bf38108c4c35fbdaf4 100644 (file)
@@ -13,6 +13,7 @@
 #include <sstream>
 //#include "MEDMEM_STRING.hxx"
 #include "Batch_JobInfo.hxx"
+using namespace std;
 
 namespace Batch {
 
index 093d8e3a91f5fc3c1c89799f670fb60c0c47d876..7cdca65355bd382b881d868fab0af88a4eb122ef 100644 (file)
@@ -11,7 +11,6 @@
 #ifndef _JOBINFO_H_
 #define _JOBINFO_H_
 
-using namespace std;
 #include <iostream>
 #include <string>
 #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
index a079b9249a1af5fc047b3448a94be76992a8b05f..dce6749f76b3074ecaef8204a8a65bc88aea7cda 100644 (file)
@@ -15,6 +15,7 @@
 #include "Batch_Environnement.hxx"
 #include "Batch_RunTimeException.hxx"
 #include "Batch_JobInfo_PBS.hxx"
+using namespace std;
 
 namespace Batch {
 
index 2429b9832fdd6e28553e69509e8899e158c6a3c5..4ae535c96e55b51d219a6dbb6ff559f21c404e78 100644 (file)
@@ -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 &);
 
   };
 
index 78450133ece0679884f8bddf652b1a9874122153..b884d7fa0703cf3023f3c4ed4ebbc80aae31b261 100644 (file)
@@ -12,6 +12,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include "Batch_Job_PBS.hxx"
+using namespace std;
 
 namespace Batch {
 
index aba5d44ab0a36e2a36fc9d181db1c7824086a806..3d5f3be986bba7dbea11458c5e8b5574609771cc 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include "Batch_ListIsFullException.hxx"
+using namespace std;
 
 
 namespace Batch {
index c9807b132e0187803ffbac337cbd62132a210186..1451d9d039458e10c5e56eaf5bf69d58c6e8dd57 100644 (file)
@@ -18,7 +18,7 @@ namespace Batch {
   {
   public:
                // Constructeur
-    ListIsFullException(string ch = "undefined") : GenericException("ListIsFullException", ch) {}
+    ListIsFullException(std::string ch = "undefined") : GenericException("ListIsFullException", ch) {}
   };
 
 }
index 2bd92c6c09f97c8b83e7fa79e418044383778d28..6a7c10038f8dad984fd530a7d9b8fba2cdbe12c1 100644 (file)
@@ -11,6 +11,7 @@
 #include <sstream>
 //#include "MEDMEM_STRING.hxx"
 #include "Batch_LongType.hxx"
+using namespace std;
 
 namespace Batch {
 
index bf82d2ed3bc698cf51d04d8802d2615dd65b929b..62873c9111abbb81922fa37d2d6b60e253c43027 100644 (file)
@@ -10,7 +10,6 @@
 #ifndef _LONGTYPE_H_
 #define _LONGTYPE_H_
 
-using namespace std;
 #include <string>
 #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);
index 170bd00cf4203674c5c8d7fa4dbb0f095929d402..0fe844c8f71c619bd41426d2d6e0e9aba97aea97 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <string>
 #include "Batch_MapKey.hxx"
+using namespace std;
 
 namespace Batch {
 
index caee3633fec3aff54b255a96e209d36b5b8342c2..2e7629927b7bdaccc972704b8545abba093f297e 100644 (file)
 #define _MAPKEY_H_
 
 
-using namespace std;
 #include <string>
 
 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<class InputIterator>
-    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) {}
 
   };
 
index 753290d8166f7c3a19756a87000f2dde664033f2..2f64c06c4d4f1b0763e995c25b81d816eaceccde 100644 (file)
@@ -13,6 +13,7 @@
 
 
 #include "Batch_GenericException.hxx"
+using namespace std;
 
 namespace Batch {
 
index fb8605c1b8bd1e83d8a37c7e1bad0a63743ad520..47547061faa11aef144f1087a3e4cb11c988c3f6 100644 (file)
@@ -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
index 5a2d78a5261901c67ce9746648b1e13a04eef4a9..e4ed4d8897c44fa5bc8f971e27b899b8ad235ba6 100644 (file)
@@ -10,7 +10,6 @@
 #ifndef _PARAMETRE_H_
 #define _PARAMETRE_H_
 
-using namespace std;
 #include <map>
 #include <string>
 #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:
 
index c8321fb56eb529e915c9e91962e22b7f1e65552b..21c8104eb219c64f60e9f4abfc8628e86b94f326 100644 (file)
@@ -17,6 +17,7 @@
 #include "Batch_TypeMismatchException.hxx"
 #include "Batch_ListIsFullException.hxx"
 #include "Batch_InvalidArgumentException.hxx"
+using namespace std;
 
 namespace Batch {
 
index fd9156078c2f14e69bbd4077912ee6c52130e34a..ebfe7d62278c913b0b9ae13eaa52933db9c3f324 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include "Batch_RunTimeException.hxx"
+using namespace std;
 
 namespace Batch {
 
index 53194ac0bb0460cf57f8a28fecf36dd8eb5324b9..2b64c4207d66d1764453648c3ada180eadd91e77 100644 (file)
@@ -20,7 +20,7 @@ namespace Batch {
   {
   public:
                // Constructeur
-    RunTimeException(string ch = "undefined") : GenericException("RunTimeException", ch) {}
+    RunTimeException(std::string ch = "undefined") : GenericException("RunTimeException", ch) {}
   };
 
 }
index 4d71c333c31ab9c25545b85345c1f0ba04cd6554..fa01f03314ca74cb5ee4329777fe98cd8a786722 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <string>
 #include "Batch_StringType.hxx"
+using namespace std;
 
 namespace Batch {
 
index 4471b2976a99f49d13757248b170cf0037ca47a9..bc97b63a06c426dc6dfde6902eee5fc8cc54b2c1 100644 (file)
@@ -10,7 +10,6 @@
 #ifndef _STRINGTYPE_H_
 #define _STRINGTYPE_H_
 
-using namespace std;
 #include <string>
 #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:
 
index 7376eedb697e069971d6738088acb7d543d7ab09..4575eda4a1ec102cebf960d3ea8b757b79776a66 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include "Batch_TypeMismatchException.hxx"
+using namespace std;
 
 namespace Batch {
 
index fb6d1f91371b8e800e5d8ce1560e9793db958276..6aa7d09335f825f292300d5449af58bb9aaf685d 100644 (file)
@@ -19,7 +19,7 @@ namespace Batch {
   {
   public:
                // Constructeur
-    TypeMismatchException(string ch = "undefined") : GenericException("TypeMismatchException", ch) {}
+    TypeMismatchException(std::string ch = "undefined") : GenericException("TypeMismatchException", ch) {}
   };
 
 }
index a0adaf1bc78c003747c72c92877127df594c8e5a..8ed9d9a3ec287be00fd67820d7b77df75e9bc5ca 100644 (file)
@@ -21,6 +21,7 @@
 #include "Batch_Versatile.hxx"
 #include "Batch_TypeMismatchException.hxx"
 #include "Batch_ListIsFullException.hxx"
+using namespace std;
 
 namespace Batch {
 
index bf44b961eebe73a51c5c5b4aecf1731ed7c1fd2a..d1a397ef75e2224dd1105611253d8e5ffcd47289 100644 (file)
@@ -10,7 +10,6 @@
 #ifndef _VERSATILE_H_
 #define _VERSATILE_H_
 
-using namespace std;
 #include <iostream>
 #include <list>
 #include <string>
@@ -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:
 
index fd8cb5a0e993457a355b2c66f2394756fc30eae3..68cbb04bcff0391aefc6b330dd78d3ed72173a46 100644 (file)
@@ -21,7 +21,7 @@
 
 #include "CASCatch_SignalsHandler.h"
 #include <OSD.hxx>
-
+using namespace std;
 
 CASCatch_SignalsHandler::CASCatch_SignalsHandler(bool theFloatingSignal)
 {
index d649d965258e54760df28c014fa915f6b3b06d97..6eb40f7c6748997d5dcc398f6d263b8ea94b8957 100644 (file)
@@ -1,4 +1,5 @@
 #include "MultiCommException.hxx"
+using namespace std;
 
 MultiCommException::MultiCommException(const char *message)
 {
index 0f5466c86b6ece31012c8923f000ec14c4f8dda8..fe029fc4a17832dd4f56ef280c4d7dee8a448362 100644 (file)
@@ -3,11 +3,10 @@
 
 #include <string>
 
-using namespace std;
 
 class MultiCommException {
 private:
-  string _message;
+  std::string _message;
 public:
   MultiCommException(const char *message);
   const char *what() const;
index dc24b200fd6aaff7cc81972a9909782108c76a23..559f8158e359d7bc91b0d52a0732dd23ae7825da 100644 (file)
@@ -1,5 +1,6 @@
 #include "Receiver.hxx"
 #include <string.h>
+using namespace std;
 
 /*!
   return a deep copy of the array contained in the servant.
index 31bcb67685bfa12a89dc4cd45ff61ba49c79adc9..f3f0da6b149a88f890d05037e6b76d33435e882a 100644 (file)
@@ -1,5 +1,6 @@
 #include "ReceiverFactory.hxx"
 #include "Receivers.hxx"
+using namespace std;
 
 #ifdef COMP_CORBA_DOUBLE
 #define CorbaDNoCopyReceiver CorbaNCNoCopyReceiver
index e01125aa7f7530287bd92ef1f000dff444c1fe40..a5d65ae15fc517aa11ba2db600981da5102fce93 100644 (file)
@@ -1,5 +1,6 @@
 #include "poa.h"
 #include "utilities.h"
+using namespace std;
 
 #define TAILLE_SPLIT 100000
 #define TIMEOUT 20
index 71c4135e6b2816a101684d75f414b04e546cd679..c832478ab51721a721724ab4b5518c1b8af591be 100644 (file)
@@ -1,4 +1,5 @@
 #include "SALOMEMultiComm.hxx"
+using namespace std;
 
 SALOMEMultiComm::SALOMEMultiComm():_type(SALOME::CORBA_)
 {
index 00fe36a1138ff32ac9cbe74cea7944a1adef64ef..49dd14a17ab99595f22fe2126764196417e31221 100644 (file)
@@ -7,6 +7,7 @@
 #include "utilities.h"
 
 #include "SenderFactory.hxx"
+using namespace std;
 
 CORBA::ORB_var &getGlobalORB(){
   ORB_INIT &init = *SINGLETON_<ORB_INIT>::Instance();
index 6a8c23ba974c9bf48fe5632664ac2431409e216f..3fac77789e636a97bcef40e58331b090f4b21afa 100644 (file)
@@ -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.
index 35b4af0b91e2307a7e9cae39c745039a5220d47e..3b1f81165943ed24c6e14a339aad050f7795df46 100644 (file)
@@ -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
index cad8ba99c696dac43d93553e1368a4c16bf9d1ed..a03faf92b6a5de411229855585e45ddc4542a101 100644 (file)
@@ -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 <dlfcn.h>
 #include <cstdlib>
 #include "utilities.h"
+using namespace std;
 
 extern bool _Sleeping ;
 static Engines_Component_i * theEngines_Component ;
index 41a526d0a5ff8cc54122b90094e9057e798bae42..02b2acce44006dfa262a76052d749ad8d235602e 100644 (file)
 
 #include <Python.h>
 
-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[])
index 268de2f0b9ac5d9255dacd6c5719bf6b526db843..bb2d8989f1438e6460f75120b401b0c3af77e1a9 100644 (file)
@@ -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)
 {
index e960a3b830b902cb7b437d5fa31a694c6cf9cdf0..6a65dcb3c86457be9fe9fa4a129c285cc709284c 100644 (file)
@@ -91,7 +91,7 @@ protected:
   std::map<std::string, void *> remove_map ;
   omni_mutex _numInstanceMutex ; // if several threads on the same object
 
-private: 
+  //private: 
 
   int   _argc ;
   char** _argv ;
index 083cc4b14f78c1e4eb7eaae9d3a53f838cfb7da0..580d16b5c537990178ce2b94a63829f2246172f7 100644 (file)
@@ -24,7 +24,6 @@
 //  File   : SALOME_DataTypeCatalog_Client.cxx
 //  Module : SALOME
 
-using namespace std;
 /* $Header$ */
 
 #include <iostream.h>
@@ -32,6 +31,7 @@ using namespace std;
 #include "SALOME_DataTypeCatalog.hh"
 #include <string>
 #include "utilities.h"
+using namespace std;
 
 int main(int argc,char **argv)
 {
index 1fb5f45e183ef4fb6c37402f11a2e0cac6267196..cb5337e674b5090a4889c827a797b73f908ebf08 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOME_DataTypeCatalog_impl.hxx"
 #include "Utils_ExceptHandlers.hxx"
 #include <fstream>
+using namespace std;
 
 UNEXPECT_CATCH(DTC_NotFound, SALOME_DataTypeCatalog::NotFound);
 
index e12fc070f61af8241fedbdeeb93423fdb35b508f..97f81cc5f1a0d8790c80bea224c8a3aefd52b55a 100644 (file)
@@ -34,6 +34,7 @@
 #include <qapplication.h>
 #include <qthread.h>
 #include <pthread.h>
+using namespace std;
 
 #ifdef _DEBUG_
 static int MYDEBUG = 0;
index 49cc430994fec014138d59eeea2c2195fdaa0db9..e5719df68a24a96f0b3fbff3dc08140f3f52cd73 100644 (file)
@@ -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 <string.h>
 #include <fcntl.h>
 #include <stdio.h>
+using namespace std;
 
 bool CreateAttributeFromASCII(HDFinternalObject *father, FILE* fp);
 bool CreateDatasetFromASCII(HDFcontainerObject *father, FILE *fp);
index b87cb0799e2c6be3fb0529b682bb1542fe047b22..5dff5b35e63b3f5122cc523c3c6c887443ac5c4a 100644 (file)
@@ -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)
index 2f5398bd7a85734f936c19256831be9d44de4487..1a84b1db1d304f7c393b26245a32039e5b30dd39 100644 (file)
@@ -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)
index 31c19c95353c6c22fc827acc0c441d3e318cd870..434c666dae6eb03e459030873d0e07aa46c2d383 100644 (file)
@@ -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)
 {
index 07d75e11c7c5a200294eadd09d3738fed92307c2..ac02e32dbc2687bd0a1c096d159b2f16a59b9004 100644 (file)
@@ -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 <iostream.h>
+using namespace std;
 
 herr_t dataset_attr(hid_t loc_id, const char *attr_name, void *operator_data)
 {
index 2e86f820e0120dadc53334941a94b21fc2e95b7f..114732d48218d43c85275f6d44e68bc2f2cc3df9 100644 (file)
 //  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)
 {
index 469430a3405cd85e536937ad3c45a9e7ddcbbd43..9fbe7d70d005b21d1ec720ab0386fba59e6860f8 100644 (file)
@@ -24,7 +24,6 @@
 //  File   : HDFfile.cc
 //  Module : SALOME
 
-using namespace std;
 extern "C"
 {
 #include "hdfi.h"
@@ -34,6 +33,7 @@ extern "C"
 #include <iostream.h>
 #include "HDFfile.hxx"
 #include "HDFexception.hxx"
+using namespace std;
 
 herr_t file_attr(hid_t loc_id, const char *attr_name, void *operator_data)
 {
index b08f4de6eab4675d0b0590f648c62552ed017e90..a51e13b0b173856b1b3a6528a21adde0c9c8c689 100644 (file)
@@ -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)
 {
index 2cf6ed0117c1dc0e74427692cb45c181a14ed10a..7ef6fb8e7267fbad8b31af80c2d497313ec5e5c3 100644 (file)
 //  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)
index 81fc689c881c8a73abf2fa96dcb208352245ce0d..28b87a63fb5e508c4f578dfa2fd725f90ef0bd08 100644 (file)
@@ -24,7 +24,6 @@
 //  File   : HDFobject.cc
 //  Module : SALOME
 
-using namespace std;
 #include "HDFobject.hxx"
 extern "C"
 {
@@ -32,6 +31,7 @@ extern "C"
 #include <string.h>
 }
 #include "utilities.h"
+using namespace std;
 
 HDFobject::HDFobject(char *name)
 {
index 9f28614af679a4135cc9d83a850c3555f8bb93cd..a1922f9b9b8e5251da4067f2f872a87bbb1d0cf5 100644 (file)
 //  File   : test3.cxx
 //  Module : SALOME
 
-using namespace std;
 #include <iostream.h>
 #include "HDFOI.hxx"
 #include <stdlib.h>
+using namespace std;
 
 
 int main()
index 9c85af23ff0d08bcd228e7e64d05421c20f3a6a6..04bdc37c5844e5bd9b0df7053bd18947e3ae909a 100644 (file)
 //  File   : test4.cxx
 //  Module : SALOME
 
-using namespace std;
 #include <iostream.h>
 #include "HDFOI.hxx"
 #include <stdlib.h>
+using namespace std;
 
 
 int main()
index e025798ddf40a068b49b75fe0d612fe1f7e661aa..33ab02da97177842f5440d6568b7f4195e7275a8 100644 (file)
 //  File   : test5.cxx
 //  Module : SALOME
 
-using namespace std;
 #include <iostream.h>
 #include "HDFOI.hxx"
 #include <stdlib.h>
+using namespace std;
 
 
 int main()
index 8be92dec0e9005f6e6a743e14c52b2b5bf8fccb1..cd92a5d149540152dca58b2a75e5824168db202a 100644 (file)
 //  File   : test6.cxx
 //  Module : SALOME
 
-using namespace std;
 #include <iostream.h>
 #include "HDFOI.hxx"
 #include <stdlib.h>
+using namespace std;
 
 int main()
 {
index 935834bd203f8142ee0279accca4f9afb4631c4b..00d44573826ac5c701f14e92bead22b444992446 100644 (file)
@@ -24,9 +24,9 @@
 //  File   : test7.cxx
 //  Module : SALOME
 
-using namespace std;
 #include "HDFIO.hxx"
 #include <iostream.h>
+using namespace std;
 
 int main()
 {
index c53e84d297b5e5bb441d7d7ee773e63e509a2a9b..f73c840a4dcfeaa0de251ca1937e842b14e5037c 100644 (file)
 //  File   : test8.cxx
 //  Module : SALOME
 
-using namespace std;
 #include <iostream.h>
 #include "HDFOI.hxx"
 #include <stdlib.h>
+using namespace std;
 
 
 int main()
index 605eb07936ad7b6c572ab719d27e1f0442f10c97..0034c4242094eb5dc995cde27673cea6df800ba5 100644 (file)
 //  File   : test9.cxx
 //  Module : SALOME
 
-using namespace std;
 #include <iostream.h>
 #include "HDFOI.hxx"
 #include <stdlib.h>
+using namespace std;
 
 
 int main()
index e86b0c0a11ef1c1c4e92ff9302068804f17fab86..7908d60aead9ffa91c5c1924cdf0082d586114a3 100644 (file)
@@ -26,7 +26,6 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include <iostream>
 #include <fstream>
 #include <sstream>
@@ -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()
 {
index 2338fe34c690ebc4cfe4abadd25768b7af09f321..23b4e8797bd0ac4ed8b2b532f8fc9e8ff61dd855 100644 (file)
@@ -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 ) ;
index b67b988b63932908d394774f5e7e2026e57340c7..603c328148ad173597652aa19d50c879e23ce426 100644 (file)
@@ -26,7 +26,6 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "utilities.h"
 #include <iostream>
 #include <unistd.h>
@@ -36,6 +35,7 @@ using namespace std;
 #include "SALOME_NamingService.hxx"
 #include "SALOME_LifeCycleCORBA.hxx"
 #include <OpUtil.hxx>
+using namespace std;
 
 int main (int argc, char * argv[])
 {
index d93260dc2ae6690d4cac24408a45b0072a1924d5..a293e4766d0c6dd504eae9a4f697f13432d4d13c 100644 (file)
@@ -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)
index 09cdad05e24a7b658ee469f2a1b2b44fa7b6989a..0db216d3c63524247f2032b54dd5e58cc1afded0 100644 (file)
@@ -7,7 +7,6 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 /*! \file SALOME_Session_loader.cxx
  */
 
@@ -28,6 +27,7 @@ using namespace std;
 
 #include <qapplication.h>
 #include "InquireServersQThread.h"
+using namespace std;
 
 int main(int argc, char **argv)
 {
index 5d1b3a4a756de74ad3f3c7f44f8d8b8bb49dfc9d..df2cd8a1cc3bea72ef69e09719193e1c0ad1108c 100644 (file)
@@ -8,12 +8,13 @@
 //  Author : Vasily Rusyaev
 //  Module : SALOME
 
-using namespace std;
 #include <iostream>
 #include "SALOME_Logger_Server.hxx"
 #include <SALOMEconfig.h>
 #include <sys/types.h>
 #include <unistd.h>
+using namespace std;
+
 omni_mutex Logger::myLock;
 
 /////////////////////////////////////////////////////////////////////
index d139476c1aaad1fe780e6053335f64e0cac933ea..1a33333eb5fe8745887482c3b3695dff4aa6c9b8 100644 (file)
@@ -8,13 +8,13 @@
 //  Author : Vasily Rusyaev
 //  Module : SALOME
 
-using namespace std;
 #include "SALOME_Trace.hxx"
 #include <memory.h>
 #include <string>
 //#include <stdio.h>
 #include <stdlib.h>
 #include <iostream>
+using namespace std;
 
 //////////////////////////////////////////////////////////////////////
 // Construction/Destruction
index b3fb62e6bb2162abdb544dd2b57781003ee05e92..ad729c45ae07eaf880699114ef8356a2c294fb27 100644 (file)
 //  File   : MPIContainer_i.cxx
 //  Module : SALOME
 
-using namespace std;
 #include <iostream.h>
 #include <dlfcn.h>
 #include <stdio.h>
 #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_<SALOME_NamingService>::Instance() ;
     ASSERT(SINGLETON_<SALOME_NamingService>::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<string, void *>::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");
 }
index 390f6ce738cc8495a260b001136b4e84cb3e0cf2..7d9ddc9a26425bdea04da91a5f1e32785462a0a8 100644 (file)
 #define _SALOME_PCONTAINER_ 
 
 #include <SALOMEconfig.h>
-#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
index 7f9324a9fdf905dada3b3d08c58ed044957453b0..0da19e33ca5753158c78f16f0951fd48bd9b7590 100644 (file)
 //  File   : MPIObject_i.cxx
 //  Module : SALOME
 
-using namespace std;
 #include "MPIObject_i.hxx"
 #include "utilities.h"
 #include <mpi.h>
+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;ip<tior->length();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);
   }
 
 }
index e504bb829843cea777f4925570724690ff2f451e..d15a1b4d5174a5c835704621acfdda5478a8b1d0 100644 (file)
@@ -28,7 +28,7 @@
 #define _SALOME_POBJECT_I_H_ 
 
 #include <SALOMEconfig.h>
-#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
index 5576a570a74a10c5631626393929a250a962d51e..ae1ab27576ec7b96f4762f798d63a8fc210c321e 100644 (file)
@@ -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@
index d6e19149ea3af1bd32633dae638bb67fc99bf4f0..d6fb4474fc110c4eb32072064f234926bab00d6f 100644 (file)
@@ -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 <iostream>
 #include "MPIContainer_i.hxx"
+#include "Utils_ORB_INIT.hxx"
+#include "Utils_SINGLETON.hxx"
 #include "utilities.h"
-#include "LocalTraceCollector.hxx"
 #include <mpi.h>
+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_<ORB_INIT>::Instance() ;
+    ASSERT(SINGLETON_<ORB_INIT>::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;
 }
 
index cfa9f4c77c193b906c3799be6df5dc45aa9a95ff..9d342ca3238c001bd083d7e64111a56e0980ab2a 100644 (file)
@@ -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] ;
index dfac110345f6e0e8f275f5e4a77f52a0eca13c61..e560a072e460e1639d68ba44c4958c571c3b707b 100644 (file)
@@ -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) ;
 
 } ;
index 9e2c5c160a11dd0b4cb67bde001a4bda0cbf9d6b..680ba3766ff3e691df2464567bc7b1bf0b413f96 100644 (file)
@@ -21,6 +21,7 @@
 #include "SALOME_NamingService.hxx"
 #include "SALOME_MPILifeCycleCORBA.hxx"
 #include "OpUtil.hxx"
+using namespace std;
 
 int main (int argc, char * argv[])
 {
index a7838c30d422cb2c0a748a5b0bdb1616061c840a..57dac48d0924817f19f88adee085eba20ed2c9ac 100644 (file)
@@ -15,7 +15,6 @@
 **
 *****************************************************************************/
 
-using namespace std;
 #include <qfile.h>
 #include <qtextstream.h>
 #include <qtextcodec.h>
@@ -23,6 +22,7 @@ using namespace std;
 
 #include <stdio.h>
 #include <stdlib.h>
+using namespace std;
 
 static QString* defaultScope = 0;
 
index 684d6230548e7a8abb78b1ade1e252bcf0e4c887..d40b8e22b424839364dd33cc9594b01fcb640c14 100644 (file)
@@ -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)
index 19275eec58bed30a1e24959ca66b44faaaf88dd8..0a8f27f4e3d7acb9991bfb1bddb358ba5cf996e3 100644 (file)
@@ -33,6 +33,7 @@
 #include "utilities.h"
 
 #include <sstream>
+using namespace std;
 
 #ifdef _DEBUG_
 static int MYDEBUG = 0;
index 6e36d52a9c58bca6da59c1dd73e5002cd810b5b7..40bc4a12af8351bce247f43a5487e1c876d89fec 100644 (file)
@@ -25,8 +25,8 @@
 //  Author : Francis KLOSS
 //  Module : SALOME
 
-using namespace std;
 #include "NOTIFICATION_Swig.hxx"
+using namespace std;
 
 // Swig notification supplier
 // --------------------------
index f2361808c029f47256dadd6d298abf869e56b1db..a56c730c5efc9905b4280c095acecb26c8c9d357 100644 (file)
@@ -25,7 +25,6 @@
 //  Author : Francis KLOSS
 //  Module : SALOME
 
-using namespace std;
 #include "NOTIFICATION.hxx"
 
 class NOTIFICATION_Supplier_Swig {
index 4b03e8d163474579e8d375ab797c9b18bb1daa40..7fa194f76b971bbd80d01be8d86c8b9fd46a9e62 100644 (file)
@@ -24,8 +24,8 @@
 //  File   : ServiceUnreachable.cxx
 //  Module : SALOME
 
-using namespace std;
 #include "ServiceUnreachable.hxx"
+using namespace std;
 
 ServiceUnreachable::ServiceUnreachable( void ): SALOME_Exception( "ServiceUnreachable" )
 {
index 1058d706edc3bfa88b84d54984ff83c7b79413e5..bbbb922948c7a896c31baae5967586d998c3cf56 100644 (file)
 //  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_<ORB_INIT>::Instance(); ASSERT(SINGLETON_<ORB_INIT>::IsAlreadyExisting());
index f7bc0d67dc7be5b5cf9c5d09430cde16f74da6eb..88591375b9c896b0d6f0ba14be4a2e61da70dab7 100644 (file)
@@ -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),
index b572539a449b2c751c4c38a0ef0ee34ceb5421ca..83d3787a60b6fa4be138d15ced4601cceebd2d01 100644 (file)
@@ -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;
 
index 2d34b31a2095bed8eb89dbc7f1ccbb53ff34981b..46abdd1d6a70d1d45ef00bfa0c6fa9d3a5c25e59 100644 (file)
@@ -26,5 +26,5 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOME_AISObject.ixx"
+using namespace std;
index 117738ffac3948e23079e47a8390b706dd251614..b439aef2b01642587b9aa2e8d37b5425f18b20d4 100644 (file)
@@ -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) {
 }
index 4f07e3b88cbf04dd5b186b4a667659ff0598712a..4da402dc6caa63e7a4bbcfa7ab0863fc33185e0d 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 /*!
   \class SALOME_InteractiveObject SALOME_InteractiveObject.hxx
   \brief ...
 */
 
 #include "SALOME_InteractiveObject.ixx"
+using namespace std;
 
 SALOME_InteractiveObject::SALOME_InteractiveObject()
 {
index d98bb2b1f7adaae19fa0b25e8320463abcb3e093..70a92624c83786b5b4c87e1f410e7c400a7a03bd 100644 (file)
@@ -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)
 {
index 826b8d28506f8942f94c3ef8fdbf6da8f15afa9d..a5f5a38a0c263476dd58fae3aefb2a9c0e70dc20 100644 (file)
@@ -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
index 133bd4b71641101f3096db8fe16a7eecc5d488b7..35cd69f326c4555a14b3728a0ebc6d82abf949df 100644 (file)
@@ -27,6 +27,7 @@
 //  $Header$
 
 #include "OCCViewer_Prs.h"
+using namespace std;
 
 //==========================================================
 /*!
index e0ed072a642204b10ea07161e9203e582ec69473..eca0fbbb84e1dfe6e878f23e2aea334e298728ae 100644 (file)
@@ -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 <Xdps_Driver.hxx>
 #include <Xw_TypeOfMapping.hxx>
 #endif
+using namespace std;
 
 // For 2d
 #define LOPTIM
index b43955be1e17d8a77c95e14bf2e0dfab893cf6c9..47e4def85ecfb4fecd9f2a7162941a7275a6d121 100644 (file)
@@ -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 <V3d_View.hxx>
 #include <AIS_ListIteratorOfListOfInteractive.hxx>
 #include <Visual3d_View.hxx>
+using namespace std;
 
 /*!
     Constructor
index 1782f87852007455fdf1aa3efc1a624cf2838bb1..9ea1b6828116680aab9fe31f3bbca477f27fb50f 100644 (file)
@@ -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 <Xw.hxx>
 #endif
+using namespace std;
 
 /*!
     Constructor
index cd97a6e902f581d7894798548d19130fe64a3416..fae548a60f4543868eb91ed555a6f05f86f04cf2 100644 (file)
@@ -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 <TColStd_IndexedMapOfInteger.hxx>
 #include <NCollection_DefineBaseCollection.hxx>
 #include <NCollection_DefineDataMap.hxx>
+using namespace std;
 
 DEFINE_BASECOLLECTION( OCCViewer_CollectionOfIndexedMapOfShapes, TopTools_IndexedMapOfShape )
 DEFINE_DATAMAP( OCCViewer_MapOfIOIndexedMapOfShape, OCCViewer_CollectionOfIndexedMapOfShapes, Handle_SALOME_InteractiveObject, TopTools_IndexedMapOfShape)
index fd2a7fc5c6aa2c82ae0950a084f66f4ad728bf43..cbe25a69111404fd138891b631b367afe9fa49b6 100644 (file)
@@ -41,7 +41,6 @@
 **
 **********************************************************************/
 
-using namespace std;
 #include "qsplitterP.h"
 #ifndef QT_NO_COMPLEXWIDGETS
 
@@ -61,6 +60,7 @@ using namespace std;
 
 #include <qobjectlist.h>
 #include <qapplication.h> //sendPostedEvents
+using namespace std;
 
 #define SPLITTER_ICON_WIDTH 10
 #define SPLITTER_ICON_HEIGHT 12
index f73e7392787fa6810d8fb965eb3059f6c163b4d6..1a959ae47f4008f17ae4ab28c4e40c86b613c851 100644 (file)
@@ -41,7 +41,6 @@
 **
 **********************************************************************/
 
-using namespace std;
 #include "qworkspaceP.h"
 
 #include <qapplication.h>
@@ -73,6 +72,7 @@ using namespace std;
 
 #include <private/qapplication_p.h>
 #include <private/qinternal_p.h>
+using namespace std;
 
 #define BUTTON_WIDTH   16
 #define BUTTON_HEIGHT  14
index 9aa2f06d3f6a1cc5d8fd708f5ab9590a1a579be2..3034de6e67077b2d6e8705b41163a9f94b5c3e1a 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "Plot2d.h"
 #include "Plot2d_ViewFrame.h"
+using namespace std;
 
 QAD_ViewFrame* Plot2d::createView(QAD_RightFrame* parent)
 {
index 8d15c56ae847f298bad7cb097614a7396fa7e5ad..e32f477e046093f70396879f79b603963de0d4ab 100644 (file)
@@ -7,9 +7,9 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "Plot2d_Curve.h"
 #include "utilities.h"
+using namespace std;
 
 /*!
   Constructor
index b5267b086f3927d0bbb4bff6bf0a52a86ef2e0f4..895328d594aa5a3355cedfd58bd75448b4469b84 100644 (file)
@@ -7,8 +7,8 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "Plot2d_CurveContainer.h"
+using namespace std;
 
 /*!
   Constructor
index 07c77fca8de8b06e3472e86ef2532f11c6f0faac..c9fde0205c131115002b34aa9bfaf533227fd3d3 100644 (file)
@@ -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
index 2db19dfc4739d7f82cd69d2a40ea4ebff9c6537c..8f3ec0687e80a3145f08c921989fa32a7a4ee868 100644 (file)
@@ -27,6 +27,7 @@
 //  $Header$
 
 #include "Plot2d_Prs.h"
+using namespace std;
 
 //==========================================================
 /*!
index bc80cd164b76516b1c4d9364cc0303fc282fa5c9..c7e157eec2d07c7cbee8d10af375109af6a2327c 100644 (file)
@@ -20,6 +20,7 @@
 #include <qlabel.h>
 #include <qpushbutton.h>
 #include <qcolordialog.h>
+using namespace std;
 
 #define MARGIN_SIZE          11
 #define SPACING_SIZE         6
index 53a7b3d920d9739d5e07a4a0bf527985123c3344..49f5cbdd347110ef3cfc45ad419fe947f644a2f8 100644 (file)
@@ -36,6 +36,7 @@
 #include <SALOMEconfig.h>
 #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
index e11f5a2218f15016877378cb954d0ad1c9cc52cf..bf33e0882160df3254002ade8f6ce16a170cc1f9 100644 (file)
@@ -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 <stdio.h>
 }
+using namespace std;
 
 
 Registry::Components_var Connexion( int argc , char **argv , const char *ptrSessionName ) throw( CommException )
index 6f2509258fafd95c6843b07487182d8e86163ad0..5b945cd41ae6aa77674087e02c0cadbf2ee0ab80 100644 (file)
@@ -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 );
index 94dfa3034bdebf27ec451f515e6baa6d8ca54a4e..8aed1d77fe959abf52e7056c2226a024bb4b9e75 100644 (file)
@@ -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 <unistd.h>
+using namespace std;
 
 /* ------------------------------*/
 /* Constructeurs et Destructeurs */
index 3c26d92b73bc50d46fe0ee9bf6d7efc533a81a1e..63f7d57e4ddf2a1fa1b092102eb262895d990d33 100644 (file)
@@ -34,7 +34,6 @@
 
 # include <map>
 
-using namespace std;
 
 class RegistryService : public POA_Registry::Components  //, public PortableServer::RefCountServantBase
 {
@@ -88,10 +87,10 @@ protected :
 
        const char              *_SessionName ;
        int                      _Compteur ;
-       map<int,client_infos *>  _reg ;
-       map<int,client_infos *>  _fin ;
+       std::map<int,client_infos *>     _reg ;
+       std::map<int,client_infos *>     _fin ;
 
-       Registry::AllInfos* makeseq(map<int,client_infos *> &mymap );
+       Registry::AllInfos* makeseq(std::map<int,client_infos *> &mymap );
 
 } ;
 
index 3d8b682cc3014e739e7588d20c382ffae544426f..40889fe28f6adfd6ed8f2654e841592b139e601d 100644 (file)
@@ -26,7 +26,6 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 # include "HelpWindow.hxx"
 # include "utilities.h"
 
@@ -34,6 +33,7 @@ using namespace std;
 # include <qpushbutton.h>
 # include <qtextstream.h> 
 # include <qfile.h> 
+using namespace std;
 
 HelpWindow::HelpWindow(QWidget* parent, const char* name ) 
      : QMainWindow( parent, name, WType_TopLevel | WDestructiveClose )
index 9f1a5d212f3b70997bc0e7f6b1b90962c4e66d30..239de1fe0733133d114cacf56a46df24de3ed404 100644 (file)
@@ -15,6 +15,7 @@
 #include <qpushbutton.h>
 #include <qlayout.h>
 # include "utilities.h"
+using namespace std;
 
 #define MARGIN_SIZE      11
 #define SPACING_SIZE      6
index c5a2b0f79e5932e6a01897680aff26d023105805..9e732f1b2c58e5d7fddb0bf285dfd3e12f158570 100644 (file)
@@ -16,7 +16,6 @@
 # include <qpushbutton.h>
 # include <qspinbox.h>
 
-using namespace std;
 
 class IntervalWindow : public QDialog
 {
index d78d5150fbe4fb7cd494a550f6ddd41451e4a489..a2cb69e3bbc361f6cd2d9bfbf129d239d95f7456 100644 (file)
@@ -26,7 +26,6 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 # include <qpushbutton.h>
 # include <qlistview.h>
 # include <qtabwidget.h> 
@@ -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;
index 341e60d54f0baea6b924bd49aa3b21c9d9131983..ffef14c4d8c1539665a9cf4a65739963c9c60263 100644 (file)
@@ -26,9 +26,9 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 # include "RegWidget.hxx"
 # include "utilities.h"
+using namespace std;
 
 extern "C"
 {
index c6a524cde0c5a6b02905ad3282a3ecfb060b654c..d368d878f2a4523cb3246eb2d46166956d359d97 100644 (file)
@@ -24,7 +24,6 @@
 //  File   : SALOME_RessourcesCatalog_Client.cxx
 //  Module : SALOME
 
-using namespace std;
 /* $Header$ */
 
 #include <iostream.h>
@@ -33,6 +32,7 @@ using namespace std;
 #include CORBA_SERVER_HEADER(SALOME_RessourcesCatalog)
 #include <string>
 #include "utilities.h"
+using namespace std;
 
 int main(int argc,char **argv)
 {
index cc819e49563ccdce6170ae1893c6262d18abc14e..5a1d7bed46ee04fbc42b4bbd637fbab15093ea05 100644 (file)
 //  Author : Estelle Deville
 //  Module : SALOME
 
-using namespace std;
 #include "SALOME_RessourcesCatalog_impl.hxx"
 #include <fstream>
 
 #include "Utils_ExceptHandlers.hxx"
+using namespace std;
 UNEXPECT_CATCH(RC_NotFound, SALOME_RessourcesCatalog::NotFound);
 
 //----------------------------------------------------------------------
index 7bb09d0a9b1d101ac17a1841543f14b83d2d6de3..463f9594bb9f9133a3ec31cbe9afb06ebb46cf79 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_AttLong_i.hxx"
 #include "utilities.h"
 #include <TDF_Tool.hxx>
 #include <stdio.h>
+using namespace std;
 
 //============================================================================
 /*! Function : Set
index e144805466b1206e69775dd691ead6722398ecc8..7140ec6b6d04793e120e1172f2b8cf4fdfc4178e 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_AttReal_i.hxx"
 #include "utilities.h"
 #include <TDF_Tool.hxx>
 #include <stdio.h>
 #include <cstring>
+using namespace std;
 
 //============================================================================
 /*! Function : Set
index 3bf3299f264de659b26f01d22206a66ba8d73e68..6563d8fd4a709c47e48228229e14e66e094b4ab0 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_AttributeComment_i.hxx"
 
 #include <TCollection_ExtendedString.hxx>
 #include "SALOMEDS_SObject_i.hxx"
+using namespace std;
 
 char* SALOMEDS_AttributeComment_i::Value()
 {
index 5164435584efd3c8ab34125b4170be302caf41e1..dc23dcd37c96b7cd70fffe03a4b96d14d2c7fd06 100644 (file)
@@ -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);
index 01679d0cab39dc8aea3c51d1c602b3d4a7a12fac..ddff1d495507d41b6a48e9826470dfd599d178bb 100644 (file)
@@ -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);
index 94e2a313d62761591470215203b12ac42304f094..a6c424c1744ea4179ab841fc5163ab2ead9072f5 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_AttributeExternalFileDef_i.hxx"
 
 #include <TCollection_ExtendedString.hxx>
 #include "SALOMEDS_SObject_i.hxx"
+using namespace std;
 
 char* SALOMEDS_AttributeExternalFileDef_i::Value()
 {
index d40a53f43f5f510ea278f2397d224873253f7343..9411fbb676e1f73973cf6f042619b96c9e0ae2bc 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_AttributeFileType_i.hxx"
 
 #include <TCollection_ExtendedString.hxx>
 #include "SALOMEDS_SObject_i.hxx"
+using namespace std;
 
 char* SALOMEDS_AttributeFileType_i::Value()
 {
index b1ec78bf08f1c4c991f4d09f89e5924529105b5f..6cf5e337466fdc06114075e97d59cbedd74f141e 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_AttributeIOR_i.hxx"
 
 
 #include <TCollection_ExtendedString.hxx>
 #include "SALOMEDS_SObject_i.hxx"
 #include "SALOMEDS_Study_i.hxx"
+using namespace std;
 
 char* SALOMEDS_AttributeIOR_i::Value()
 {
index 8d3484709a5ccf54a5bf97cabf6b2816ead52534..8245e3723b71f188d124c265fe6e729839fad15a 100644 (file)
@@ -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() {
index d55ea0d990be1954af0e3889dc94e47c66d6fb54..b6aac228078334b81686530d62449e20e693f1da 100644 (file)
@@ -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();
index 3dafade54d62f0f0cc9611c3835f13ad348c5123..bc003247852983b883d05b2f318cb31ec54ba685 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_AttributeName_i.hxx"
 #include <TCollection_ExtendedString.hxx>
 #include "SALOMEDS_SObject_i.hxx"
+using namespace std;
 
 char* SALOMEDS_AttributeName_i::Value() {
   TCollection_ExtendedString S = Handle(TDataStd_Name)::DownCast(_myAttr)->Get();
index 1c5808a596adab0909c184350053c7e2462858d1..842d1ce1d7e5fd368bd2213cf20532a39fe0794a 100644 (file)
@@ -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);
index c8e72e102144a12ddcda8a6a2b3bc3c4b20908b4..c550587aef9cd6eca4872f65a757cacbcc1bcd7d 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_AttributePersistentRef_i.hxx"
 #include <TCollection_ExtendedString.hxx>
 #include "SALOMEDS_SObject_i.hxx"
+using namespace std;
 
 char* SALOMEDS_AttributePersistentRef_i::Value()
 {
index a34de496705313010cca0f78dddd58f10656037f..140d0ea4829db3da63934182b4821d025bd47e24 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_AttributePixMap_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include <TCollection_AsciiString.hxx>
+using namespace std;
 
 CORBA::Boolean SALOMEDS_AttributePixMap_i::HasPixMap() {
   TCollection_ExtendedString S = Handle(SALOMEDS_PixMapAttribute)::DownCast(_myAttr)->Get();
index dde8e609309227431f18e75f2b877bcb01c64282..c3be0fedce7ea9c47d1c4a42e0b5ab81fb247417 100644 (file)
@@ -9,11 +9,11 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_AttributePythonObject_i.hxx"
 #include <TCollection_ExtendedString.hxx>
 #include <TColStd_HArray1OfCharacter.hxx>
 #include "SALOMEDS_SObject_i.hxx"
+using namespace std;
 
 void SALOMEDS_AttributePythonObject_i::SetObject(const char* theSequence, CORBA::Boolean IsScript) {
   CheckLocked();
index c18334aea5d0060e1d2e89dea84f3c3663190228..aa41a7281ad6af9fd7f87c3755ed481c786c8407 100644 (file)
@@ -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);
index 28748f7532f3d7e10051ba5b1da00bd0b3d2ae6b..6f202da149aaad1a633e792303bba5ef7ace2d0a 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_AttributeSequenceOfInteger_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include <TColStd_HSequenceOfInteger.hxx>
+using namespace std;
 
 
 void SALOMEDS_AttributeSequenceOfInteger_i::Assign(const SALOMEDS::LongSeq& other) 
index a88637f6a01504d802670375554cd3fafdb5a1b9..a3fe11e24bb2131b37ac7f9a3f8b51d85b0e489f 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_AttributeSequenceOfReal_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include <TColStd_HSequenceOfReal.hxx>
+using namespace std;
 
 void SALOMEDS_AttributeSequenceOfReal_i::Assign(const SALOMEDS::DoubleSeq& other) 
 {
index 8444beca918760d90dd3909b6e171292b794c439..1e87e8428d4ec5317cd402be87380ffab93f28be 100644 (file)
@@ -9,11 +9,11 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_AttributeStudyProperties_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include <TColStd_HSequenceOfExtendedString.hxx>
 #include <TColStd_HSequenceOfInteger.hxx>
+using namespace std;
 
 #define CREATION_MODE_NOTDEFINED 0
 #define CREATION_MODE_SCRATCH 1
index df037e5252e7bb42379eb97f8f4dbd5855eddfd0..716a491391183bbcb6e69d935125134782f1e720 100644 (file)
@@ -9,7 +9,6 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_AttributeTableOfInteger_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include <TColStd_HSequenceOfInteger.hxx>
@@ -20,6 +19,7 @@ using namespace std;
 #include <stdexcept>
 #include <strstream>
 #include <string>
+using namespace std;
 
 #define SEPARATOR '\1'
 
index cb06a664f23271e31d45e085df1864f89d5a4953..7308441ae94dc6d5b2f826cf02a4528c9f4c05f1 100644 (file)
@@ -9,7 +9,6 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_AttributeTableOfReal_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include <TColStd_HSequenceOfReal.hxx>
@@ -20,6 +19,7 @@ using namespace std;
 #include <string>
 
 #include "Utils_ExceptHandlers.hxx"
+using namespace std;
 UNEXPECT_CATCH(ATR_IncorrectIndex, SALOMEDS::AttributeTableOfReal::IncorrectIndex);
 UNEXPECT_CATCH(ATR_IncorrectArgumentLength, SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength);
 
index b77322d31c8db996a22dd51aa8eca4b3ce684bc1..2f5a95796845f581fb210df3280ecf5f37bc9fae 100644 (file)
@@ -8,7 +8,6 @@
 //  Author : Sergey Ruin
 //  Module : SALOME
 
-using namespace std;
 #include <TCollection_ExtendedString.hxx>
 #include <TCollection_AsciiString.hxx>
 
@@ -23,6 +22,7 @@ using namespace std;
 #include <string>
 
 #include "Utils_ExceptHandlers.hxx"
+using namespace std;
 UNEXPECT_CATCH(ATS_IncorrectIndex, SALOMEDS::AttributeTableOfString::IncorrectIndex);
 UNEXPECT_CATCH(ATS_IncorrectArgumentLength, SALOMEDS::AttributeTableOfString::IncorrectArgumentLength);
 
index 1d14121c12467a257664307ccef0fd6b79c5c89f..a70357e4697490a1532cec10a2144f78f632ce66 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_AttributeTarget_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include <TDF_LabelList.hxx>
 #include <TDF_ListIteratorOfLabelList.hxx>
+using namespace std;
 
 void SALOMEDS_AttributeTarget_i::Add(SALOMEDS::SObject_ptr anObject) {
   TDF_Label aLabel;
index cf63ff0d97d16341fb1ddcce1b38770d2505bf51..f1c5b65efcdf69d57b4fc05a38dc7ceda7c0af04 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_AttributeTextColor_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include <TColStd_HArray1OfReal.hxx>
+using namespace std;
 
 SALOMEDS::Color SALOMEDS_AttributeTextColor_i::TextColor() {
   SALOMEDS::Color TextColor;
index 0995ac90a6133cbf50216a74c14c67bc963cdcf2..f50028358f664bf92df9dd6b130064b822ca8998 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_AttributeTextHighlightColor_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include <TColStd_HArray1OfReal.hxx>
+using namespace std;
 
 SALOMEDS::Color SALOMEDS_AttributeTextHighlightColor_i::TextHighlightColor() {
   SALOMEDS::Color TextHighlightColor;
index e37bd2a9bd884043df6e9ddb26a4e3767be137d9..196d54b0683b15dd710792656c6c6afdb9c9ac96 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_AttributeTreeNode_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include "utilities.h"
 #include <TDocStd_Document.hxx>
 #include <TDF_Tool.hxx>
+using namespace std;
 
 static Handle(TDataStd_TreeNode) GetNode(SALOMEDS::AttributeTreeNode_ptr value,
                                         const Handle(TDataStd_TreeNode)& aNode) {
index b7fa64a41b9fd4fc3369f6a727b91a15c938749d..5c8524045abadce4231e2b5913b2ba2e6205695d 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_AttributeUserID_i.hxx"
 #include <TCollection_ExtendedString.hxx>
 #include "SALOMEDS_SObject_i.hxx"
+using namespace std;
 
 char* SALOMEDS_AttributeUserID_i::Value() {
   char aGUID[40];
index 707c40e10151dffd3f3cc5fa9fdd585af9b75381..6669582475aa0e4daf134d6d7b47a99be56fd755 100644 (file)
@@ -26,9 +26,9 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_BasicAttributeFactory.hxx"
 #include "utilities.h"
+using namespace std;
 
 //============================================================================
 /*! Function : Create
index cedaec93afe9b6e93e168c11c6ead32a0699e1b5..5022f049c0be97dd7da0887841140c394a38d2dc 100644 (file)
@@ -26,8 +26,8 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_BasicAttribute_i.hxx"
+using namespace std;
 
 //============================================================================
 /*! Function : SetLabel
index 9475797213a13086dc890bd2011a2ffd3ff25743..ed181e31fd27b3604fda5586ff8feba275dd4bf7 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_ChildIterator_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 #include "utilities.h"
+using namespace std;
 
 
 
index 93812ac4e73b7f1b5120e472af024968dc1d5226..e564a093c2e6ecfbf2456497acbe6e609de24d02 100644 (file)
@@ -25,6 +25,7 @@
 #ifndef _SALOMEDS_DataMapNodeOfDataMapOfIntegerString_HeaderFile
 #include <SALOMEDS_DataMapNodeOfDataMapOfIntegerString.hxx>
 #endif
+using namespace std;
  
 
 #define TheKey Standard_Real
index 1473d66c57876e5746bcc2aad9dcd80e0933edcc..b261e4409586e5bd52c9784d9693b25ce885a81b 100644 (file)
@@ -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 <TCollection_ExtendedString.hxx>
index c40761b053a74e63427b0e4c972303534de0e6be..737d4614a034c9a65d89194f21fe3bd885b6d559 100644 (file)
@@ -26,6 +26,7 @@
 #ifndef _SALOMEDS_DataMapIteratorOfDataMapOfIntegerString_HeaderFile
 #include <SALOMEDS_DataMapIteratorOfDataMapOfIntegerString.hxx>
 #endif
+using namespace std;
 SALOMEDS_DataMapNodeOfDataMapOfIntegerString::~SALOMEDS_DataMapNodeOfDataMapOfIntegerString() {}
  
 
index 401a2b77ec6b5bc24b81fe46b48f4394b13698e5..ea391289956ab8d5ab3b14bf0a0087875789cc77 100644 (file)
@@ -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() {}
  
 
index b14e2d8971b65b5ff47d49069b00da1b258fe61c..652532351341c30ff26a45b03cebf1885bd560d5 100644 (file)
@@ -28,7 +28,8 @@
 #ifndef _SALOMEDS_DataMapIteratorOfDataMapOfIntegerString_HeaderFile
 #include <SALOMEDS_DataMapIteratorOfDataMapOfIntegerString.hxx>
 #endif
+ using namespace std;
+
 
 #define TheKey Standard_Real
 #define TheKey_hxx <Standard_Real.hxx>
index 76dab0d3bb27cc2d01c18e47850c7210abd4bcec..c5976f38507b5a40a7fc861c501dfe73a80fce87 100644 (file)
@@ -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 <TCollection_ExtendedString.hxx>
index 8d72f6a6a1d136794c5947b2871a71f8df7c7efa..1a1db8c386bd12755cf0fdb750223238d308fbe4 100644 (file)
@@ -26,9 +26,9 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_DrawableAttribute.ixx"
 #include <TDataStd_Integer.hxx>
+using namespace std;
 
 //=======================================================================
 //function : GetID
index b20dd9c1001349553a8f609b5601a33e8f68873b..2ab9ebdd523fd42902189c3f10385dff2cdb729f 100644 (file)
@@ -26,9 +26,9 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_ExpandableAttribute.ixx"
 #include <TDataStd_Integer.hxx>
+using namespace std;
 
 //=======================================================================
 //function : GetID
index 7311b29c0c883386af980ac932ac8a477569c0ee..87f76e105662f21034a463cb9c387e2aec1c0427 100644 (file)
@@ -9,7 +9,6 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 
 #include <TDataStd_TreeNode.hxx>
 #include <TDataStd_UAttribute.hxx>
@@ -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);
index c305641a4bdf3e533f876914d19d34a93298db3d..f71b538fd5d59051bb0018ac78ce8b719bf74881 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_IORAttribute.ixx"
 #include <TDataStd_Comment.hxx>
 #include <TCollection_ExtendedString.hxx>
 #include "SALOMEDS_Study_i.hxx"
+using namespace std;
 
 //=======================================================================
 //function : GetID
index f38360b4a696b8f0b6aef09c4093d88e97792e85..406cde57eebf575cada39b6c8d3623e5dec43ff6 100644 (file)
@@ -26,9 +26,9 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_LocalIDAttribute.ixx"
 #include <TDataStd_Integer.hxx>
+using namespace std;
 
 //=======================================================================
 //function : GetID
index e0c7ad35f595e60d809d4f1d7a139f1b72aa75e9..5913c68423ba85da657a4c9d894287dc497dd0d2 100644 (file)
@@ -26,8 +26,8 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_OCAFApplication.ixx"
+using namespace std;
 
 //=======================================================================
 //function : SALOMEDS_OCAFApplication
index fc074bf13ef420efe88f9e3dd401698af2dee79b..f7c17c3ef307e1d4d10539c9c99df5840afb877b 100644 (file)
@@ -26,9 +26,9 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_OpenedAttribute.ixx"
 #include <TDataStd_Integer.hxx>
+using namespace std;
 
 //=======================================================================
 //function : GetID
index 8e313831c5faf559f8b04404b553586968e34040..8d57af837f814525971eced591d614d4aaac7624 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_PersRefAttribute.ixx"
 #include <TDataStd_Comment.hxx>
 #include <TCollection_ExtendedString.hxx>
+using namespace std;
 
 //=======================================================================
 //function : GetID
index fa84b61802443c60e7831b62b8e78a0e5fad0510..32c5705008a59b1d0d9c4e4a4343a88d77af6254 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_PixMapAttribute.ixx"
 #include <TDataStd_Comment.hxx>
 #include <TCollection_ExtendedString.hxx>
+using namespace std;
 
 //=======================================================================
 //function : GetID
index fd0538e0ed5aaf37ca0b2432033171209903b36e..f8c8d9de49682e97059d7dd4bafb6e5ec359cb2b 100644 (file)
@@ -9,9 +9,9 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_PythonObjectAttribute.ixx"
 #include <string>
+using namespace std;
 
 const Standard_GUID& SALOMEDS_PythonObjectAttribute::GetID() 
 {
index 77b0b46554e7b8b02b1ee85f889af812839a028e..1cd09ebe6164c3f6e7d2aa7e0db9fe50ff0731ed 100644 (file)
@@ -26,8 +26,8 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_SComponentIterator_i.hxx"
+using namespace std;
 
 
 //============================================================================
index 15b066e5ec96f4c7c3d1933c6d506b508a499a99..ee89975662afd00cd7372111b4d40724f009ec58 100644 (file)
@@ -26,9 +26,9 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_SComponent_i.hxx"
 #include "utilities.h"
+using namespace std;
 
 
 //============================================================================
index 42971688602e8cdf6fdb5fc0fb61264fd73500c1..04478d1deb0a47f7357450e349b5f91760f9b14f 100644 (file)
@@ -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 <TDF_AttributeIterator.hxx>
+using namespace std;
 
 //============================================================================
 /*! Function : constructor
index 40b179eca082117ca2d6b03cf1e21b424ac7ba9d..9bd6406b21ab253f4250831d1ba0d7f913b154bb 100644 (file)
@@ -26,9 +26,9 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_SelectableAttribute.ixx"
 #include <TDataStd_Integer.hxx>
+using namespace std;
 
 //=======================================================================
 //function : GetID
index ed256eb0a9b2cd01d6c54f47f1b341df460f7240..b181431814c390d646b3ce845f1b92d6863e13b8 100644 (file)
@@ -26,8 +26,8 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_SequenceOfIntegerAttribute.ixx"
+using namespace std;
 
 //=======================================================================
 //function : GetID
index 9c8d3516d2c410d8ac28b0c0219eb8ff9cb64c6a..13d24252636fa4dd126182db158f595e8da06329 100644 (file)
@@ -26,9 +26,9 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_SequenceOfRealAttribute.ixx"
 #include <TDataStd_Real.hxx>
+using namespace std;
 
 //=======================================================================
 //function : GetID
index 47bfde5ae180fd1a8e54c909372ce52330b818a4..125152fedbd1723d1ce998e1d2dfe8d6a8f7cb6d 100644 (file)
@@ -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 <HDFOI.hxx>
 #include <stdlib.h> 
+using namespace std;
 
 #define USE_CASE_LABEL_TAG            2
 #define DIRECTORYID 16661
index 0f4a38c99d44ec05088deacaccfeb5934faff9e1..71033bb231804b2a6c4455836c63f34c0c313449 100644 (file)
 #include "Utils_CorbaException.hxx"
 
 #include <strstream>
-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);
index 4f83613beefcdbd307b29742e21b8fd4a4797d03..62835949d174f65afe253a541af30f54b91c55db 100644 (file)
@@ -9,8 +9,8 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include <SALOMEDS_StudyPropertiesAttribute.ixx>
+using namespace std;
 
 const Standard_GUID& SALOMEDS_StudyPropertiesAttribute::GetID() 
 {
index be15994347673fc38892da5a5296114cb5d3b016..4b7287aadea8475e0f051201decb257842af3a0f 100644 (file)
@@ -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
index a5134a76f19690450ff36fc9f1e04a89717f88ea..abe7171f80fbdb01dfea94694abd5e0422befaae 100644 (file)
@@ -9,12 +9,12 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include <SALOMEDS_TableOfIntegerAttribute.ixx>
 #include <Standard_Failure.hxx>
 #include <TColStd_DataMapIteratorOfDataMapOfIntegerInteger.hxx>
 
 #include <string>
+using namespace std;
 
 const Standard_GUID& SALOMEDS_TableOfIntegerAttribute::GetID() 
 {
index d12b58bb2f84c239632f75f7812b58ead84995cb..f234fca979d1e4a90d35756b0e1f8e1049fa94b8 100644 (file)
@@ -9,13 +9,13 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include <SALOMEDS_TableOfRealAttribute.ixx>
 #include <Standard_Failure.hxx>
 #include <TColStd_DataMapIteratorOfDataMapOfIntegerReal.hxx>
 
 #include <string>
 #include <stdio.h>
+using namespace std;
 
 const Standard_GUID& SALOMEDS_TableOfRealAttribute::GetID() 
 {
index d3a3ab2e51b180b1bc80ae8bf23cb43b99a47a9a..9fe1812057917820dd0533c2c64c788e624e521a 100644 (file)
@@ -8,13 +8,13 @@
 //  Author : Sergey Ruin
 //  Module : SALOME
 
-using namespace std;
 #include <SALOMEDS_TableOfStringAttribute.ixx>
 #include <Standard_Failure.hxx>
 #include <SALOMEDS_DataMapIteratorOfDataMapOfIntegerString.hxx>
 
 #include <string>
 #include <stdio.h>
+using namespace std;
 
 const Standard_GUID& SALOMEDS_TableOfStringAttribute::GetID() 
 {
index 9e623b8b1b16466ee78d511787fab97e4276e046..a57efc214fa38e934fc7fd4e65f4589f178cf441 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_TargetAttribute.ixx"
 #include <TDF_Reference.hxx>
 #include <TDF_ListIteratorOfAttributeList.hxx>
 #include "utilities.h"
+using namespace std;
 
 //=======================================================================
 //function : GetID
index 89b033e6e71c1bc51ee0f0740ef071f145262177..33f137c20f80d50a81f41550df5e9b3e8797711d 100644 (file)
@@ -26,8 +26,8 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_TextColorAttribute.ixx"
+using namespace std;
 
 //=======================================================================
 //function : GetID
index ccc3c70a8fe6380db4175a22909738327a268e14..c27270f4a89da608a4f0de8abd6cc66ce94e6cb3 100644 (file)
@@ -26,8 +26,8 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_TextHighlightColorAttribute.ixx"
+using namespace std;
 
 //=======================================================================
 //function : GetID
index ba6d6397e5a3609b9dfc7f129a0b190cce8f47c3..e04481fdb942a9012b60cf87e1b8a31cd09e10e1 100644 (file)
@@ -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 <TDataStd_ChildNodeIterator.hxx>
 #include <TCollection_AsciiString.hxx>
 #include <TDF_ChildIterator.hxx>
+using namespace std;
 
 #define USE_CASE_LABEL_TAG           2
 #define USE_CASE_GUID                "AA43BB12-D9CD-11d6-945D-0050DA506788"
index 69e7d39ecc165e46b3f0b402906f8bd4c90df405..07f79bf75aff2dfed6b0e9d9141ae60b31208df2 100644 (file)
@@ -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;
 
 
 
index eb8b43d5eba6f8308d0689aa1af5aa03efc062e6..c58e5f57faa96b248c86117c3c52d85a55a40987 100644 (file)
@@ -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 <TCollection_AsciiString.hxx>
 #include <TCollection_ExtendedString.hxx>
 #include <Standard_Failure.hxx>
+using namespace std;
 
 static bool checkPermission(QString fileName) {
   if ( QFile::exists( fileName ) ) {
index 33b56323756abbf4620f3edaec946ab3702d0e1e..0616c26112913a959bdd97422f43dbdd71b5df7c 100644 (file)
@@ -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 <qfile.h>
 #include <qregexp.h>
 #include <qtextstream.h>
+using namespace std;
 
 
 /*!
index a45638cd539f3fb928485727d869f8508bed902b..542df51cf581cfa7abe3446dbe864a832b33c039 100644 (file)
@@ -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 <qlabel.h>
 #include <qpushbutton.h>
 #include <qapplication.h>
+using namespace std;
 
 #define MIN_WIDTH     400
 #define MIN_HEIGHT    200
index d3e1bb230fa65348134eb27106e74e339f094d0a..40b24ef6f4368093ff071cd51cbad73def3f2ef6 100644 (file)
@@ -9,7 +9,6 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include <qapplication.h>
 #include <qdir.h>
 #include <qlabel.h>
@@ -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
 
index ad66970368b1e7144564e1cb24d322633ee6fa72..e14035b593ec60f406de7f7095347ccc8147d943 100644 (file)
@@ -26,8 +26,8 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "QAD_Help.h"
+using namespace std;
 
 /*!
   \class QAD_Help QAD_HelpL.h
index 8f4322541dce4b608b4f58d40972fb5392b0e86a..2453ec7e4b31fee8986f9d63091cea1b8e9981a3 100644 (file)
@@ -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 <qtoolbutton.h>
 #include <qcombobox.h>
 #include <qfileinfo.h>
+using namespace std;
 
 /*!
   Constructor
index c3a021d26aa860ba7f956da2af5ed9c41563e922..8edb54c480774cb6d5d007db109900944b52cfc7 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "QAD_LeftFrame.h"
 #include "QAD_ObjectBrowser.h"
 #include <qlayout.h>
+using namespace std;
 
 /*!
   \class QAD_LeftFrame QAD_LeftFrame.h
index 04c8d041dcda7c4b6c28db430e5212cd5cfd29e6..16bb368dc95e2cc680c813d9cf1bc80dc0d89eae 100644 (file)
@@ -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,
index e5a5d134fcc50accd40e81ff1f46d0bf766c528b..1d9e9a7b98e0e1a08e8df44534dd54c8080663a0 100644 (file)
@@ -26,8 +26,8 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "QAD_ListPopupMenu.h"
+using namespace std;
 
 /*!
   Constructor.
index 904ee271386e42d523e7f556949c4d2fe2cf9661..b7ddf6ae7d78a02c2962a11c02f7742f0ec7312e 100644 (file)
@@ -26,8 +26,8 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "QAD_Menus.h"
+using namespace std;
 
 /*!
   Constructor.
index 4730b1ee8149727ac2802de760bc015fd8dfb91f..1f5f570c4440cf405119008d167debfb528507ae 100644 (file)
@@ -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 <qstring.h>
 #include <qpopupmenu.h>
 #include <qmap.h>
+using namespace std;
 
 enum { IdCopy, IdClear, IdSelectAll };
 
index c6aad0f760c66f44a6df9aad41e6d1e2a9902fb6..2f41606245ff5771576473c3e1964a26be10c724 100644 (file)
@@ -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 <qmessagebox.h>
 #include <qapplication.h>
+using namespace std;
 
 /*!
     Shows info message box with one button [ static ]
index 730a53bad740a620c9ec3cdf086688efd34e4bb1..7cdf04b592bdf74b7007d224c9b4ca7e4b7111ef 100644 (file)
@@ -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 <qvariant.h>
 #include <qtooltip.h>
 #include <qwhatsthis.h>
+using namespace std;
 
 /*! 
   Constructs a QAD_NameBrowser which is a child of 'parent', with the 
index 37035831748131e59405a7b7cebf411517bf4eb0..696fb78f4273504ded2d9accc864ec544b71692e 100644 (file)
@@ -26,7 +26,6 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "QAD_ObjectBrowserItem.h"
 
 #include <qcolor.h>
@@ -34,6 +33,7 @@ using namespace std;
 #include <qpixmap.h>
 #include <qstringlist.h>
 #include <qpainter.h>
+using namespace std;
 
 /*!
   Constructors
index 87c99f194ef3486ae9564a554888681dfb140e5a..42e0bb9551ccf97b37d44f295bf8ccd92d4279b7 100644 (file)
@@ -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 <qapplication.h>
+using namespace std;
 
 /*!
     Constructor 
index 8ad4e40d0cd6eb33b35d8c9893b457f874b0863c..34bc0290c4070539e930413368cec49a82418830 100644 (file)
@@ -26,9 +26,9 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "QAD_OperatorMenus.h"
 #include "QAD_Desktop.h"
+using namespace std;
 
 /*!
   Constructor.
index b824dad2a3c988c37694b9a1bec6f946f9baf8d5..c0506f189dedaf7c7568c0a7686a31cb5974cb0b 100644 (file)
@@ -26,7 +26,6 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "QAD_ParserSettings.h"
 
 #include <stdio.h>
@@ -35,6 +34,7 @@ using namespace std;
 #include <qfile.h>
 #include <qfileinfo.h>
 #include <qtextstream.h>
+using namespace std;
 
 
 /*!
index aa2c65a93d2cab66cd342be2db7967d2086d4e9d..9bd085b6b392108745dbf3c825cf40f84f744d48 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "QAD.h"
 #include "QAD_Popup.h"
 #include "utilities.h"
+using namespace std;
 
 /*****************************************************************************
 **  Class QAD_PopupClientServer
index a220c1536ac7ae4fa8ffecdf1566071578fcba44..576c7475c1c094eab92d59636d7da4a33b64715e 100644 (file)
@@ -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 <qfileinfo.h>
 
 #include <Standard.hxx>
+using namespace std;
 
 /* configuration file */
 static const char* CONFIG_FILE = "config";
index 14df2e8f37d09355301193aa98655fef949c1fef..d1fec9a21cbefbd28a4e79f38e3eb0296fe6a431 100644 (file)
@@ -26,7 +26,6 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "QAD_Settings.h"
 
 #include <stdio.h>
@@ -36,6 +35,7 @@ using namespace std;
 #include <qregexp.h>
 #include <qstring.h>
 #include <qtextstream.h>
+using namespace std;
 
 /*!
     Class QAD_Settings is a base class for different kind of settings
index 6bf31664c1c2057d63450545835622c911d22f60..dffa96919a75761878c0eac185e796f6f0fd593a 100644 (file)
@@ -9,7 +9,6 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "QAD_SpinBoxDbl.h"
 #include <qpushbutton.h>
 #include <qpainter.h>
@@ -19,6 +18,7 @@ using namespace std;
 #include <qpixmapcache.h>
 #include <qapplication.h>
 #include <limits.h>
+using namespace std;
 
 //******************************************************************************
 // QDblRangeControl class
index cb472ea714eae5e537fa46c9ffc183a592a16a8c..0d620f597589ec833421aebba84c2548953d19c3 100644 (file)
@@ -26,8 +26,8 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "QAD_Splitter.h"
+using namespace std;
 
 /*!
   Constructs an horizontal splitter.
index e2e85bf5363a20a3b6e2c67fe80b9f96d33a46ab..dfa23e5c7a5849d342bab46d56c6807d8082e717 100644 (file)
@@ -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 <string.h>
 #include <ctype.h>
 #include <qstringlist.h>
+using namespace std;
 
 static char* tempName()
 {
index 2226782d4581071129b3a1092aefab5d77f0edbb..85df1090063368893e4063d1deec88718b98117d 100644 (file)
@@ -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 <qaccel.h>
 #include <qstringlist.h>
 #include <qfileinfo.h>
+using namespace std;
 
 map<int,QString>             QAD_XmlHandler::_bibmap;
 
index 5f853a485a0c44c6b56d800f291460c8faef06ce..6c2795394e3a4c8a372cf3f86ddffe91502b5779 100644 (file)
@@ -28,6 +28,7 @@
 
 #include "SALOMEGUI.h"
 #include "QAD_Desktop.h"
+using namespace std;
 
 
 //=============================================================================
index 7ae5111de37ffbb4198f42d1caec31f4f1dd7511..fb7e5930130ddedd005f14ad829a272ea9a48a5f 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEGUI_AboutDlg.h"
 #include "QAD_Desktop.h"
 #include "QAD_Tools.h"
 #include <qlayout.h>
 #include <qpixmap.h>
 #include <qmessagebox.h>
+using namespace std;
 
 /* 
  * Constructor
index 42859b842f481474a47a4110ac9e8c780908a818..a182a2d467c81573f76a3ce0ae857d00f86c3ac7 100644 (file)
@@ -8,7 +8,6 @@
 //  Author : Michael Zorin (mzn)
 //  Module : SALOME
 
-using namespace std;
 #include "SALOMEGUI_ActivateComponentDlg.h"
 
 #include <qframe.h>
@@ -16,6 +15,7 @@ using namespace std;
 #include <qpushbutton.h>
 #include <qlayout.h>
 #include <qpixmap.h>
+using namespace std;
 
 static const char* const default_icon[] = { 
 "48 48 17 1",
index 090d66ad2764035484cbaab991facbf46a6a491c..556e10ca4319749de2fd920e9b690a89485cb801 100644 (file)
@@ -8,7 +8,6 @@
 //  Author : Vasily RUSYAEV (vrv)
 //  Module : SALOME
 
-using namespace std;
 #include "SALOMEGUI_CloseDlg.h"
 
 #include <qpushbutton.h>
@@ -16,6 +15,7 @@ using namespace std;
 #include <qlayout.h> 
 #include <qlabel.h> 
 #include <qmessagebox.h>
+using namespace std;
 
 
 SALOMEGUI_CloseDlg::SALOMEGUI_CloseDlg ( QWidget * parent, const char * name, bool modal, WFlags f )
index 63ce9dbe806d8dfe62bb09cd13fbb44fd7e8d17a..c73bd1e3d576e02f398222cb246d2ab8de4198d7 100644 (file)
 //  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 
index 2cb58f8580f1530eec0f8d54b1c582ef53a0c71d..34a33b1a3ede8ba1c752355a0ae4ad510a0cea6f 100644 (file)
@@ -3,7 +3,6 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEGUI_ExternalBrowserDlg.h"
 
 #include <qbuttongroup.h>
@@ -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'
index 36c535e8339d4075ec06aef4fc70b6c4ddb041fc..84e0c17ce46e3d694d4830aff024731c79d3a8cb 100644 (file)
@@ -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 )
index de3343aff21c3f655aba9a520684fd6476370f64..0e3c09dcee3775623c4f3cc2f07a9d2d2096e77e 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEGUI_LoadStudiesDlg.h"
 
 #include <qlabel.h>
 #include <qlayout.h>
 #include <qlistbox.h>
 #include <qpushbutton.h>
+using namespace std;
 
 #define SPACING_SIZE             6
 #define MARGIN_SIZE             11
index 841e42f9bf7d71f07d2893d913e003fd807c5cb7..dd21fe89bd6600cfded3940b46037b667f82fae8 100644 (file)
@@ -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 <qlineedit.h>
 #include <qpushbutton.h>
 #include <qlayout.h>
+using namespace std;
 
 /*!
   Constructor
index 1638bdbb9219bb88ed69be660a5bd9f9db7927f2..2203f5f979e5c939f41d665e2e9ec2f2390214bd 100644 (file)
@@ -26,7 +26,6 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEGUI_OpenWith.h"
 
 #include <qlabel.h>
@@ -34,6 +33,7 @@ using namespace std;
 #include <qpushbutton.h>
 #include <qlayout.h>
 #include <qlistbox.h>
+using namespace std;
 
 #define SPACING_SIZE             6
 #define MARGIN_SIZE             11
index 971433632b17e01179674112426ccfe18124d108..ede2c4366f94e0fa7747c9473e3dcd1856f60f5b 100644 (file)
 //  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)
 {
index 3a8eb70f2a7d4b56bdf131b74881b79d158d4fe4..caa274038c5e4a1ef796754031172d6d8a28882d 100644 (file)
@@ -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 <qpushbutton.h>
 #include <qlayout.h>
 #include <qvalidator.h>
+using namespace std;
 
 #define MARGIN_SIZE     11
 #define SPACING_SIZE    6
index 15e5b4cb6099ea5c7d6eb95b3e24069efcf9c60e..4265cb95de6a9351cf223c42f80c4e26cec28d64 100644 (file)
@@ -9,7 +9,6 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEGUI_SetupCurveDlg.h"
 #include "QAD_Tools.h"
 #include <qlayout.h>
@@ -20,6 +19,7 @@ using namespace std;
 #include <qtoolbutton.h>
 #include <qgroupbox.h>
 #include <qcolordialog.h>
+using namespace std;
 
 #define MARGIN_SIZE      11
 #define SPACING_SIZE     6
index 0019a14ddcc66e81a149da4a24afdb1aa26e1f0f..4d9a73281c5bbdb17c17ae2ce1f20ac917c448ab 100644 (file)
@@ -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 <qpushbutton.h>
 #include <qlayout.h>
+using namespace std;
 
 #define  DEFAULT_MARGIN 11
 #define DEFAULT_SPACING 6
index 5f0455fcdf12ddb8bb527902499632ec97589618..a70b74df42e613d01c916114645fb32ce9666e36 100644 (file)
@@ -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 <qinputdialog.h>
 #include <qlabel.h>
 #include "utilities.h"
+using namespace std;
 
 #define MARGIN_SIZE       11
 #define SPACING_SIZE      6
index ed31165c36a013e438158a2e677e8436e6864a8b..8f78226ce2f328b88bd354fb6e311a3c7b95c681 100644 (file)
@@ -26,7 +26,6 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEGUI_TrihedronSizeDlg.h"
 
 #include <qbuttongroup.h>
@@ -34,6 +33,7 @@ using namespace std;
 #include <qpushbutton.h>
 #include <qspinbox.h>
 #include <qlayout.h>
+using namespace std;
 
 #define MARGIN_SIZE      11
 #define SPACING_SIZE      6
index d091d18dad083b0f4a783eedd7b128f866dc4299..9451c87773654993741c47ff2bc23eb9219b5722 100644 (file)
@@ -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 <qvariant.h>
 #include <qtooltip.h>
 #include <qwhatsthis.h>
+using namespace std;
 
 /* 
  *  Constructs a SALOMEGUI_ViewChoiceDlg which is a child of 'parent', with the 
index b45bb6c6d8b9eda36dafa4032baa3a601ed2b3bc..8d089784478783159cc20e411fa2f5fc7d614500 100644 (file)
@@ -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"
index d4d843fe0fc97601c35fa54577416763f8b53472..4cab4c88e60e0bb0d01b3e088c1b2548c6ee4811 100644 (file)
@@ -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() {}
  
 
index e55a3e490d1420259ad18052edd7db72143dae94..7ce912510c4c658c1fe95ad36620e3fe839ff59a 100644 (file)
@@ -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"
index 2a095e50a7195d57555b807add0d358157eab3ee..a6ca25e670eae3500f543e2409175d0b5b22c8f2 100644 (file)
@@ -26,6 +26,6 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOME_Filter.ixx"
+using namespace std;
 
index 0c5ee6097ec270daa61f1dc48e3720371b16baf3..14be3eee61d206c1cd8ecd9835e88ce6eef401ad 100644 (file)
@@ -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"
index 928d94559013eb89775e41c8c202a88b6c7835ec..adb55ab723ebc57e6a6354268c48d369bf063d36 100644 (file)
@@ -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
index 95cba8a29729f1d14f18eee863959ec643d294f5..57a0e587bf1f7a3c3cf5eb090fec0ea0e0fa01ae 100644 (file)
@@ -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
index 95147d20debcec7c1997814cd1a9c5523f6fc4ef..35f04d576adfc8595cebca8f0ccb3a86dcace8d8 100644 (file)
@@ -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() {}
  
 
index b89c9d1e71fe18e790be7ad3e3e228d11c3f5843..23afd5801aaac3132e16dcb7c7ac0a6ebc51571d 100644 (file)
@@ -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() {}
  
 
index 6dbbdaacf68abb96cfafcf51de9f3fd727fb8f65..8b30df9f67ae7a918c02545e27b998ef019917aa 100644 (file)
@@ -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
index 3574d8d6412b8220c22bc68b2ca134822c12d1a9..cdc63948e71d601eefa8bb8aadfc753e18271da8 100644 (file)
@@ -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),
index 4bc2a52464c934d241843dc372330995505269b7..83f1d71ec1a00ff341a886ea5fa14e5efd95fe15 100644 (file)
@@ -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){}
index 73046c6ec5140365fa4d423ece8c9dda00885387..8a997221a423b19e5e946bf704c8ba89f886fb6c 100644 (file)
 #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;
 
index 94543b9f2972456619193df7a5ac5a120731aa47..28696612bdf078508c8c8960eba9a7006c525632 100644 (file)
@@ -36,7 +36,6 @@
 #include <sstream>
 #include <cstdlib>
 
-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<<deb
+#define MESS_INIT(deb) std::ostringstream os; os<<deb
 #define MESS_BEGIN(deb) MESS_INIT(deb)<<__FILE__ <<" ["<<__LINE__<<"] : "
 #define MESS_END endl; LocalTraceBufferPool::instance()->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 <<flush; \
+#define IMMEDIATE_ABORT(code) {cout <<std::flush; \
                                cerr << "- ABORT " << __FILE__ << " [" <<__LINE__<< "] : " << flush; \
                                cerr << "ABORT return code= "<< code << endl; \
                                std::exit(code);}
index d23fcf57111da44f233ad9874f897d6f28accbb8..7bc439ab1918f0f982594b70111fad385fce9640 100644 (file)
@@ -24,6 +24,8 @@ using namespace std;
 #include <map>
 #include <string>
 
+using namespace std;
+
 static PyInterp_PyQt *interp = NULL;
 static map<int,PyInterp_PyQt*> mapInterp;
 
index e821f22bae849129ab103e61ddff1f6aca23d173..370280259ca77bf11b2c43809a6e1a992ef20519 100644 (file)
@@ -5,7 +5,6 @@
 //  File   : SalomePyQt.cxx
 //  Module : SALOME
 
-using namespace std;
 #include "SalomePyQt.hxx"
 
 #include <qapplication.h>
@@ -20,6 +19,7 @@ using namespace std;
 
 #include "QAD_Config.h"
 #include "QAD_Settings.h"
+using namespace std;
 
 QWidget* SalomePyQt::getDesktop()
 {
index 140853bb9302c7901a5c924bc02b047119a45efb..70524b0619d7be2f225a5c638c1d28f1bba99c9b 100644 (file)
@@ -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)
 {
index f312dbcde23f3ef5044d214f2e570e7a88356570..9d0c6baab37b1ff8e0a43f7fd5e60c27c73a8836 100644 (file)
@@ -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 <qcolordialog.h>
 #include <qpopupmenu.h>
+using namespace std;
 
 
 SUPERVGraph_Graph::SUPERVGraph_Graph(QWidget* parent) : 
index 7a73fff3efa17bd3f579fd9221624fd2fb1a5b22..7e125178ae740851bb925e10394cad49b8b3f8d4 100644 (file)
@@ -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 <qlayout.h>
 #include <qcolordialog.h>
+using namespace std;
 
 SUPERVGraph_View::SUPERVGraph_View(QWidget* theParent): QWidget(theParent){
   init(theParent);
index 76cfaeb41ea97e629899414f4d6f28c0f20d2263..9b1e5d95f17db5ab913cad25f4c96bc355951cee 100644 (file)
@@ -26,7 +26,6 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include <qapplication.h>
 #include <qlabel.h>
 
@@ -48,6 +47,7 @@ using namespace std;
 #include "Utils_CorbaException.hxx"
 #include <SALOMEconfig.h>
 #include CORBA_SERVER_HEADER(SALOMEDS)
+using namespace std;
 
 //=============================================================================
 /*! SALOME_Session_QThread
index 2a8522145276c90c9c6449359ab1951f638ffa23..c78fb6763ea9946b4b5499c6360e8f57563ebcf1 100644 (file)
@@ -60,6 +60,7 @@
 #include "SALOME_Session_i.hxx"
 
 #include "Session_ServerLauncher.hxx"
+using namespace std;
 
 extern "C" int HandleSignals(QApplication *theQApplication);
 
index c02f6132a9da1260b5fb470be72f220205bd7fd8..8b0dec803f2d235e5c64c2c2e6aedb080a3bf3d7 100644 (file)
@@ -22,6 +22,7 @@
 #include <qapplication.h>
 
 #include "CASCatch_SignalsHandler.h" // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC
+using namespace std;
 
 
 extern "C" int HandleSignals(QApplication *theQApplication)
index 8cbfce4de90f93c958d7ef88163f1da7e2a6f952..82a8c6733661d6212acd001a39b00ef5afe144ef 100644 (file)
@@ -30,6 +30,7 @@
 
 #include "Utils_SALOME_Exception.hxx"
 #include "utilities.h"
+using namespace std;
 
 //=============================================================================
 /*! 
index 45804e17d20eead3446e771fcd13e7f105fcf6cb..e5c11232223844204b3e2887e182502cfa778064 100644 (file)
@@ -38,7 +38,6 @@
 #include <qthread.h>
 #include <qwaitcondition.h>
 
-using namespace std;
 
 class ServArg
   {
@@ -78,9 +77,9 @@ private:
   PortableServer::POA_var _root_poa;
   QMutex* _GUIMutex;
   QWaitCondition *_ServerLaunch;
-  list<ServArg> _argServToLaunch;
-  vector<string> _argCopy;
-  list<Session_ServerThread*> _serverThreads;
+  std::list<ServArg> _argServToLaunch;
+  std::vector<std::string> _argCopy;
+  std::list<Session_ServerThread*> _serverThreads;
 };
 
 #endif
index b7dfc2c865dba2d774ed9033b4f0dfb2e8763aba..e67ee7fe805751a8ff947867bec6d408c51b6fa1 100644 (file)
 #define _SESSION_SERVERTHREAD_HXX_
 
 #include <CORBA.h> 
-#include <string>
 
 #include "SALOME_NamingService.hxx"
 #include <qthread.h>
 
-using namespace std;
 
 class Session_ServerThread
 {
index f14dcade09068e399e3032ab2f71f232c5863b0d..4e07ddf04dfa69d748997bee0ab9ef7791bf1c49 100644 (file)
@@ -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 <sys/time.h>
 #include <stdlib.h>
+using namespace std;
 
 //============================================================================
 // function : GetTempDir
index 4b2f470890a966e09e208406670ed9221d515a00..7e98ad7b18f263ca97ddd501adfec5a1e483795e 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "ToolsGUI.h"
 #include "ToolsGUI_CatalogGeneratorDlg.h"
 
 #include "utilities.h"
 
 #include <stdlib.h>
+using namespace std;
 
 int ToolsGUI::runCommand(string & arg)
 { 
index cca19c31a84f6b0c0b107be2b9262b5b12f9e950..3c765b45cb55610ae79301b8997815a351c6b3ae 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "utilities.h"
 #include "SALOME_TestComponent_i.hxx"
 #include <stdio.h>
 #include <cstdlib>
 #include <map>
+using namespace std;
 
 Engines_TestComponent_i::Engines_TestComponent_i(CORBA::ORB_ptr orb,
                                                 PortableServer::POA_ptr poa,
index 8b73720de009de979c819988f9fbf330d93860db..d5756b4cf1ab856f58a69dbd129e192b5822b7b9 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "utilities.h"
 #include <iostream>
 #include <unistd.h>
 #include <SALOMEconfig.h>
 #include "SALOME_NamingService.hxx"
 #include "OpUtil.hxx"
+using namespace std;
 
 int main (int argc, char * argv[])
 {
index 3f753af5dfeaa10a04336837486d5b4870a148bb..b195a019954b13aa5f14b394dba1c3db0987717f 100644 (file)
@@ -20,6 +20,7 @@
 # include "Utils_SINGLETON.hxx"
 #include "SALOME_NamingService.hxx"
 #include "OpUtil.hxx"
+using namespace std;
 
 int main (int argc, char * argv[])
 {
index d4e953d863a94632d0bfe03015068f4845ac4e2d..15af581ee198b3d9338cc091b768a08ce36698e8 100644 (file)
@@ -26,8 +26,8 @@
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 # include "Utils_CommException.hxx"
+using namespace std;
 
 CommException::CommException( void ): SALOME_Exception( "CommException" )
 {
index d785f16d103250a0c33228c917b93dcceeff5136..44d642b86fe0f7dba6b0f832051b6979f0080b2f 100644 (file)
@@ -45,9 +45,9 @@
                 throw SALOME::SALOME_Exception(ExDescription); \
               }
 
-#include <ostream.h>
+#include <iostream>
 //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;
index dbe9f1ba303f6d08f2450471c2b82beacc0a2d4a..268aa1f3038a26672827cb05b38e49743b0f893e 100644 (file)
@@ -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<DESTRUCTEUR_GENERIQUE_*> *Destructeurs=0 ;
 
 /*! \class ATEXIT_
index 2e9b095670bdc72d2f860e034703ea04a4e46dfd..d3f144e34a64162bab354ae8dc3b9d3a736b1df7 100644 (file)
@@ -11,6 +11,8 @@
 #include <SALOMEconfig.h>
 #include CORBA_SERVER_HEADER(SALOME_Exception)
 
+using namespace std;
+
 void SalomeException ()
 {
   throw SALOME_Exception("Salome Exception");
index 8f26985a1b21d4963ebf23c016adedd964b29e28..6db802be820ad49a9ba10f7a0b64edf8cdabb3cb 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include <iostream>
 #include "Utils_SALOME_Exception.hxx"
 #include "utilities.h"
+using namespace std;
 extern "C"
 {
 #include <math.h>
index d72879e4b872b7ee317d763ca685a117d00ee6f2..a76eb3eafb909da5fa5df775fb466901d3fe3135 100644 (file)
@@ -24,6 +24,7 @@
 #include <signal.h>
 
 #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.  
 }
 
 
index f594aba9be5b2bebdae2d759fc662d2924f67fe6..67153429ee3c715d27d0cf8bbcfe4195232bd652 100644 (file)
 //  Module : SALOME
 
 # include "Utils_Timer.hxx"
-# include <stream.h>
-using namespace std;
+# include <iostream>
 
 #include "utilities.h"
+using namespace std;
 
 static struct timezone *tz=(struct timezone*) malloc(sizeof(struct timezone));
 
index d61f825e034cee9208b5ea11642fefbe329da5ef..05e18db031f3d4f2a47bad7da00a6b03fb02c720 100644 (file)
@@ -43,6 +43,7 @@
 #include <vtkUnstructuredGrid.h>
 #include <vtkVoxel.h>
 #include <vtkWedge.h>
+using namespace std;
 
 #ifdef _DEBUG_
 static int MYDEBUG = 0;
index f1ee7c5e90de3cd617ef21a2c48bd1f3d54ca6d7..daaf36ab9ce8d3fa31cd65d95892fe92b7f214b3 100644 (file)
@@ -32,6 +32,7 @@
 #include <vtkDataSet.h>
 #include <vtkObjectFactory.h>
 #include <vtkPointData.h>
+using namespace std;
 
 vtkCxxRevisionMacro(SALOME_PassThroughFilter, "$Revision$");
 vtkStandardNewMacro(SALOME_PassThroughFilter);
index 1ea45c86ffe54ed2924388b55b172539bcf4cff9..7d9d8b18b9df9636d6f31d9217aacfbcb3ce6ebf 100644 (file)
@@ -34,6 +34,7 @@
 #include <vtkObjectFactory.h>
 #include <vtkPointData.h>
 #include <vtkUnstructuredGrid.h>
+using namespace std;
 
 #ifdef _DEBUG_
 static int MYDEBUG = 0;
index 79602806011070ee8c61eb1a38915424347ec11e..a0c60854ebb1f9c76b2a409542bbc7f7446ffc13 100644 (file)
@@ -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)
 {
index 8c09a46c4dff802b3947fa57b5864179f33e23e6..c0c5f7d811b8001371198486025550728c6fda6b 100755 (executable)
@@ -26,6 +26,7 @@
 //  Module : SALOME\r
 \r
 #include "VTKViewer_Filter.h"\r
+using namespace std;\r
 \r
 IMPLEMENT_STANDARD_HANDLE(VTKViewer_Filter, MMgt_TShared)\r
 IMPLEMENT_STANDARD_RTTIEXT(VTKViewer_Filter, MMgt_TShared)\r
index 4d048c609e0aa17bb3920a04935721da650a3a6a..dec6b008ad46b11d010daf849a5a0c9eaf9fe710 100644 (file)
@@ -27,6 +27,7 @@
 //  $Header$
 
 #include "VTKViewer_Prs.h"
+using namespace std;
 
 //==========================================================
 /*!
index 46e3dba3f6085e15f3d82125a985b9c28e3534f3..08dbc0edaaec4ce8c7245239b1cdfdbbd93428fc 100644 (file)
@@ -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 <qcursor.h>
 #endif
+using namespace std;
 
 VTKViewer_RenderWindow::VTKViewer_RenderWindow(QWidget *parent, const char *name) :
   QWidget(parent, name, 
index ae19d948de9ad74d36e211ee385add03f53d87e5..d0ee379d67a0c671754a546c08ea335ae2525fa1 100644 (file)
@@ -24,6 +24,7 @@
 #include "vtkObjectFactory.h"
 #include "vtkPoints.h"
 #include "vtkPolyData.h"
+using namespace std;
 
 vtkCxxRevisionMacro(VTKViewer_VectorText, "$Revision$");
 vtkStandardNewMacro(VTKViewer_VectorText);