Salome HOME
Merge branch 'eap/23514'
authorrnv <rnv@opencascade.com>
Thu, 14 Dec 2017 15:05:14 +0000 (18:05 +0300)
committerrnv <rnv@opencascade.com>
Thu, 14 Dec 2017 15:05:14 +0000 (18:05 +0300)
121 files changed:
CMakeLists.txt
README
SalomeKERNELConfig.cmake.in
bin/appliskel/salome_tester/salome_test_driver.py
bin/appliskel/salome_tester/salome_test_driver_gui.py
bin/killSalomeWithPort.py
bin/launchConfigureParser.py
bin/runSalome.py
bin/runSession.py
bin/salomeContext.py
doc/salome/examples/example19
doc/salome/install.dox
doc/salome/kernel_resources.dox
doc/salome/kernel_services.dox
doc/salome/main.dox
doc/salome/python_doc_api.dox
doc/salome/python_doc_compl.dox
doc/salome/salome_application.dox
doc/salome/unittests.dox
idl/DSC_Engines.idl
idl/SALOMEDS.idl
idl/SALOMEDS_Attributes.idl
idl/SALOME_Component.idl
idl/SALOME_ContainerManager.idl
idl/SALOME_Launcher.idl
idl/SALOME_PyNode.idl
idl/SALOME_Registry.idl
idl/SALOME_ResourcesManager.idl
idl/SALOME_SDS.idl
resources/channel.cfg
salome_adm/unix/DEPRECATED/Doxyfile
salome_adm/unix/DEPRECATED/make_omniorb.in
salome_adm/unix/config_files/DEPRECATED/config.guess
salome_adm/unix/config_files/DEPRECATED/ltmain.sh
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_calcium.m4
src/Basics/BasicsGenericDestructor.hxx
src/Basics/Basics_DirUtils.cxx
src/Basics/Basics_DirUtils.hxx
src/Basics/Basics_Utils.cxx
src/Basics/Basics_Utils.hxx
src/Communication/SALOME_Comm_i.cxx
src/Container/Component_i.cxx
src/Container/Container_i.cxx
src/Container/SALOME_ContainerManager.cxx
src/Container/SALOME_ContainerPy.py
src/Container/SALOME_FileRef_i.cxx
src/Container/SALOME_FileTransfer_i.cxx
src/Container/Salome_file_i.cxx
src/Container/Salome_file_i.hxx
src/DSC/DSC_Python/calcium.i
src/DSC/DSC_User/Datastream/CMakeLists.txt
src/HDFPersist/HDFfile.cc
src/HDFPersist/HDFnObjects.c
src/HDFPersist/HDFobjectIdentify.c
src/HDFPersist/test8.cxx
src/KERNEL_PY/Help.py
src/KERNEL_PY/__init__.py
src/KERNEL_PY/kernel/diclookup.py
src/KERNEL_PY/kernel/pyunittester.py
src/KERNEL_PY/kernel/testdata.py
src/KERNEL_PY/kernel/uiexception.py
src/KERNEL_PY/kernel/unittester.py
src/KERNEL_PY/omnipatch.py
src/KERNEL_PY/salome_iapp.py
src/KernelHelpers/SALOME_KernelServices.cxx
src/KernelHelpers/SALOME_StudyEditor.cxx
src/Launcher/BatchTest.cxx
src/Launcher/CMakeLists.txt
src/Launcher/Launcher.cxx
src/Launcher/Launcher_Job.cxx
src/Launcher/SALOME_Launcher.cxx
src/Launcher/Test/test_launcher.py
src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx
src/Logger/SALOME_Trace.cxx
src/MPIContainer/MPIContainer_i.cxx
src/MPIContainer/launch_testMPI2.csh
src/ModuleCatalog/CMakeLists.txt
src/ModuleCatalog/SALOME_ModuleCatalog_impl.cxx
src/NamingService/SALOME_NamingService.cxx
src/NamingService/Test/CMakeLists.txt
src/ParallelContainer/CMakeLists.txt
src/ParallelContainer/SALOME_ParallelContainerProxy_i.cxx
src/ParallelContainer/SALOME_ParallelContainer_i.cxx
src/ResourcesManager/CMakeLists.txt
src/ResourcesManager/ResourcesManager.cxx
src/ResourcesManager/ResourcesManager.hxx
src/ResourcesManager/SALOME_ResourcesManager.cxx
src/SALOMEDS/README_attributes
src/SALOMEDS/SALOMEDS_AttributeFlags_i.cxx
src/SALOMEDS/SALOMEDS_AttributeFlags_i.hxx
src/SALOMEDS/SALOMEDS_AttributeParameter.cxx
src/SALOMEDS/SALOMEDS_AttributeParameter_i.cxx
src/SALOMEDS/SALOMEDS_StudyManager_i.cxx
src/SALOMEDS/Test/CMakeLists.txt
src/SALOMEDS/Test/SALOMEDSTest_AttributeParameter.cxx
src/SALOMEDS/Test/SALOMEDSTest_AttributeSequenceOfInteger.cxx
src/SALOMEDS/Test/SALOMEDSTest_AttributeSequenceOfReal.cxx
src/SALOMEDSImpl/CMakeLists.txt
src/SALOMEDSImpl/SALOMEDSImpl_AttributeParameter.cxx
src/SALOMEDSImpl/SALOMEDSImpl_AttributeStudyProperties.cxx
src/SALOMEDSImpl/SALOMEDSImpl_SObject.cxx
src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx
src/SALOMEDSImpl/Test/CMakeLists.txt
src/SALOMEDSImpl/testDS.cxx
src/SALOMELocalTrace/FileTraceCollector.cxx
src/SALOMELocalTrace/LocalTraceCollector.cxx
src/SALOMELocalTrace/utilities.h
src/SALOMESDS/SALOMESDS_AutoRefCountPtr.hxx
src/SALOMESDS/SALOMESDS_DataScopeServer.cxx
src/SALOMESDS/SALOMESDS_DataScopeServer.hxx
src/SALOMESDS/SALOMESDS_Exception.cxx
src/SALOMESDS/SALOMESDS_Exception.hxx
src/SALOMESDS/SALOMESDS_PickelizedPyObjServer.cxx
src/SALOMESDS/SALOME_DataScopeServer.cxx
src/SALOMESDS/TestSalomeSDS.py
src/SALOMETraceCollector/SALOMETraceCollector.cxx
src/Utils/Utils_DESTRUCTEUR_GENERIQUE.hxx
src/Utils/Utils_Identity.cxx
src/Utils/Utils_Identity.py

index 8fb8558d9117d422b7b1c23eaf004db135fca83a..2d452241cfe370415e906b9fe9aeaa6eda564cd2 100755 (executable)
@@ -34,7 +34,7 @@ SET(${PROJECT_NAME_UC}_MINOR_VERSION 4)
 SET(${PROJECT_NAME_UC}_PATCH_VERSION 0)
 SET(${PROJECT_NAME_UC}_VERSION
   ${${PROJECT_NAME_UC}_MAJOR_VERSION}.${${PROJECT_NAME_UC}_MINOR_VERSION}.${${PROJECT_NAME_UC}_PATCH_VERSION})
-SET(${PROJECT_NAME_UC}_VERSION_DEV 0)
+SET(${PROJECT_NAME_UC}_VERSION_DEV 1)
 
 # Common CMake macros
 # ===================
@@ -74,7 +74,7 @@ MARK_AS_ADVANCED(SALOME_LIGHT_ONLY SALOME_USE_LIBBATCH SALOME_PACO_PARALLEL)
 
 # Required prerequisites
 #   Find "big" prerequisites first - they reference themselves many others
-#   -> this can help finding the smaller prerequisites and detect conficts.
+#   -> this can help finding the smaller prerequisites and detect conflicts.
 # =======================
 
 # Exception: LibBatch is optional but is loaded first, as it can
diff --git a/README b/README
index f2b0c2db725d3b1d52f305988849a1b093b54aa5..43b4dd532076b13487d2aa8e62a7e60cf907cb01 100644 (file)
--- a/README
+++ b/README
@@ -27,7 +27,7 @@ Installation
 Pre-requisites
 --------------
 
-SALOME platform relies on a set of third-party softwares; some of them are needed
+SALOME platform relies on a set of third-party software; some of them are needed
 at build time only, while other ones are needed in runtime also.
 
 For more information about the pre-requisites please visit SALOME platform web
index 463578ff99636b970b21957b02a7a3b22cad5ddb..ce4322712c6947503790c4b7846d7231e3ab2b9c 100644 (file)
@@ -1,6 +1,6 @@
 # - Config file for the @PROJECT_NAME@ package
 # It defines the following variables.
-# Specific to the pacakge @PROJECT_NAME@ itself:
+# Specific to the package @PROJECT_NAME@ itself:
 #  @PROJECT_NAME_UC@_ROOT_DIR_EXP - the root path of the installation providing this CMake file
 #
 # Other stuff specific to this package:
index 478d012da940ad753c007a226fce9f5013ac58ca..c167e97f6452f586f721ae2f6258e6bc425e018a 100644 (file)
@@ -54,7 +54,7 @@ if __name__ == "__main__":
   setOmniOrbUserPath()
 
   # Set timeout handler
-  print "Test timeout explicitely set to: %s seconds"%timeout_delay
+  print "Test timeout explicitly set to: %s seconds"%timeout_delay
   timeout_sec = abs(int(timeout_delay)-10)
   if sys.platform == 'win32':
     from threading import Timer
index 7ef53d33f7b3ee45baf77ac2a1b4d8c4daf019ec..1e99d312dc28df3c99bf4815fa7538de7dbd4e16 100644 (file)
@@ -51,7 +51,7 @@ if __name__ == "__main__":
   setOmniOrbUserPath()
 
   # Set timeout handler
-  print "Test timeout explicitely set to: %s seconds"%timeout_delay
+  print "Test timeout explicitly set to: %s seconds"%timeout_delay
   timeout_sec = abs(int(timeout_delay)-10)
   if sys.platform == 'win32':
     from threading import Timer
index fa8953b7c566830afa881bc83d928b625a855142..01d1eb39a2b9546e22a56162ec5c96d4e8e8de5a 100755 (executable)
@@ -217,9 +217,9 @@ def shutdownMyPort(port, cleanup=True):
     sys.exit(0) # see (1)
     pass
 # (1) If --shutdown-servers option is set to 1, session close procedure is
-# called twice: first explicitely by salome command, second by automatic
+# called twice: first explicitly by salome command, second by automatic
 # atexit to handle Ctrl-C. During second call, LCC does not exist anymore and
-# a RuntimeError is raised; we explicitely exit this function with code 0 to
+# a RuntimeError is raised; we explicitly exit this function with code 0 to
 # prevent parent thread from crashing.
 
 def __killMyPort(port, filedict):
index 57c492797c978a1bb50f293b790b5fdb32688f70..06b9645d8b95798d861000f2b86540fd2f084741 100755 (executable)
@@ -767,7 +767,7 @@ def CreateOptionParser (theAdditionalOptions=None, exeName=None):
     # wake up session
     help_str  = "Wake up a previously closed session. "
     help_str += "The session object is found in the naming service pointed by the variable OMNIORB_CONFIG. "
-    help_str += "If this variable is not setted, the last configuration is taken. "
+    help_str += "If this variable is not set, the last configuration is taken. "
     o_wake_up = optparse.Option("--wake-up-session",
                                 action="store_true",
                                 dest="wake_up_session", default=False,
index 243ec39c1a2d76138891d1300eca2e646d6f3c12..e6e79763937eb85ad290b51fa9c2ff262ba0d379 100755 (executable)
@@ -41,7 +41,7 @@ from killSalome import killAllPorts
 
 def killLocalPort():
     """
-    kill servers from a previous SALOME exection, if needed,
+    kill servers from a previous SALOME execution, if needed,
     on the CORBA port given in args of runSalome
     """
 
@@ -56,7 +56,7 @@ def killLocalPort():
 
 def givenPortKill(port):
     """
-    kill servers from a previous SALOME exection, if needed,
+    kill servers from a previous SALOME execution, if needed,
     on the same CORBA port
     """
 
@@ -587,7 +587,7 @@ def startSalome(args, modules_list, modules_root_dir):
     #    session.GetInterface()
 
     #
-    # additionnal external python interpreters
+    # additional external python interpreters
     #
     nbaddi=0
 
@@ -856,7 +856,7 @@ def runSalome():
     test = args['gui'] and args['session_gui']
     test = test or args['wake_up_session']
     # --
-    # The next test covers the --pinter option or var PYTHONINSPECT setted
+    # The next test covers the --pinter option or if var PYTHONINSPECT is set
     # --
     test = test and not os.environ.get('PYTHONINSPECT')
     # --
index 761e5d023ed24e32805a47f4f7d04da6b224eee0..8045a62e6ad06e7a4e58a0c69118ef9f3e76132a 100644 (file)
@@ -159,7 +159,7 @@ User "myself" connects to remotemachine to run the script concatenate.py in
   os.environ['NSPORT'] = port
   os.environ['NSHOST'] = host
 
-  # determine running mode, taht is either 'local' or 'remote'
+  # determine running mode, that is either 'local' or 'remote'
   here = getShortHostName()
   mode = "local"
   if host != here and host != "localhost" and host != "no_host":
index f3f3ccc014604a1b615d6d46243d9ecf00515270..b67209092e82ac095f26d1542f5f7af2d06a5fed 100644 (file)
@@ -84,7 +84,7 @@ class SalomeContext:
   """
   def __init__(self, configFileNames=0):
     self.getLogger().setLevel(logging.INFO)
-    #it could be None explicitely (if user use multiples setVariable...for standalone)
+    #it could be None explicitly (if user use multiples setVariable...for standalone)
     if configFileNames is None:
        return
     configFileNames = configFileNames or []
@@ -231,7 +231,7 @@ class SalomeContext:
 
   """
   Run SALOME!
-  Args consist in a mandatory command followed by optionnal parameters.
+  Args consist in a mandatory command followed by optional parameters.
   See usage for details on commands.
   """
   def _startSalome(self, args):
index 4cf37eb34c438d4e35f4f3e68026aafd999c9387..db65c7d924d8ffa4f406092376eb3d326e97019b 100644 (file)
@@ -237,7 +237,7 @@ Divz = Div.Port('z')
 # This DataFlow is "executable" : all pending Ports are defined with Datas
 print myGraph.IsExecutable()
 
-# Starts only execution of that DataFlow and gets control immediatly
+# Starts only execution of that DataFlow and gets control immediately
 print myGraph.Run()
 
 # That DataFlow is running ==> 0 (false)
index ce7a819be5769a8208ec053d6c73ecf0926a31d7..f145e4aa7b60ea21f306318d7d195245eb12913f 100644 (file)
@@ -18,11 +18,11 @@ You'll find here generic instructions for installing the SALOME platform.
 
 \section S1_install Quick Overview
 
-First of all, you have to check (or install if needed) the dependant
+First of all, you have to check (or install if needed) the dependent
 software programs on your system. These programs are:
 
 - common development tools as gcc, CMake tool.
-- third party softwares used in %SALOME building or runtime process
+- third party software used in %SALOME building or runtime process
   (python, OCC, VTK, ...)
 
 Further details can be found in sections \ref S2_install and \ref S3_install.
@@ -49,7 +49,7 @@ Then, the %SALOME components GEOM, MED, VISU, ... can be installed
 with a similar procedure (cf. \ref S6_install).
 
 Eventually, the platform can be run by executing the shell script
-%runSalome (cf. \ref S7_install). Here, somme additionnal variables have to be set
+%runSalome (cf. \ref S7_install). Here, somme additional variables have to be set
 to describe the %SALOME runtime configuration (<COMPONENT>_ROOT_DIR,
 OMNIORB_CONFIG)
 
@@ -58,7 +58,7 @@ The following provides you with specific instructions for each step.
 
 \section S2_install System configuration
 
-%SALOME is compiled and tested on differents platforms with native packages:
+%SALOME is compiled and tested on different platforms with native packages:
 - Debian sarge
 - Mandrake 10.1
 - ...
@@ -72,11 +72,11 @@ for building process:
 remarks:
 
 - This is the minimum level of CMake, if you need
-  to compile all the third party softwares (included OpenCascade 5.2.x).
+  to compile all the third party software (included OpenCascade 5.2.x).
 
 \section S3_install Third-party dependencies
 
-The %SALOME platform relies on a set of third-party softwares. The
+The %SALOME platform relies on a set of third-party software. The
 current version depends on the following list
 (versions given here are from Debian Sarge, except OpenCascade, VTK and MED,
 which are not Debian packages):
@@ -100,7 +100,7 @@ And, in order to build the documentation:
 - graphviz-2.2.1
 
 
-Additionnal software may be installed for optional features: 
+Additional software may be installed for optional features: 
 
 - netgen4.3 + patch
 - tix8.1.4
@@ -116,7 +116,7 @@ Additionnal software may be installed for optional features:
 
 - See doc/configuration_examples/*
 
-In the following, we assume that all the third-party softwares are
+In the following, we assume that all the third-party software are
 installed in the same root directory, named <salomeroot>/prerequis.
 Then, your file system should probably look like:
 
@@ -135,7 +135,7 @@ process and runtime.
 
 The shell file prerequis.sh, embedded in the KERNEL source package,
 provides a template for setting those variables. In this example, all the
-softwares are supposed to be installed in the same root directory,
+software are supposed to be installed in the same root directory,
 named here INSTALLROOT.
 
 Copy the prerequis.sh in a working directory and adjust the settings
@@ -239,7 +239,7 @@ For example, installing the component SMESH needs the previous
 installation of the KERNEL component, and then the GEOM and MED components.
 
 The building process uses the variables <COMPONENT>_ROOT_DIR to
-localize the dependant components. The variables must be set to the
+localize the dependent components. The variables must be set to the
 install path directory of the components <COMPONENT> (ex:
 KERNEL_ROOT_DIR=<kernel_install>). 
  
@@ -257,7 +257,7 @@ The following explains the general principles.
 
 To run the %SALOME platform, the procedure is:
 
-- set the shell environment to get access to third-party softwares:
+- set the shell environment to get access to third-party software:
   \code
 $ source prerequis.sh
   \endcode
@@ -291,7 +291,7 @@ For convenience or customization, we suggest the following organisation:
 - choose and create a root directory for the %SALOME platform, say
   <salomeroot>.
 
-- install the third-party softwares in a sub-directory "prerequis"
+- install the third-party software in a sub-directory "prerequis"
 
 - install the %SALOME components in a sub-directory "SALOME2"
 
index 01d39bcfbb49dad5842f038da2c9b0eea0bbfde1..2223d815e62ed16d92f25255b5560a25129d719e 100644 (file)
@@ -37,7 +37,7 @@ When the code is assumed to be valid, the release mode
 optimizes execution, in terms of speed, memory, and 
 display only user level messages.
 
-But, some informations must always be displayed in both 
+But, some information must always be displayed in both 
 modes: especially messages concerning environment or 
 internal errors, with version identification. When an 
 end user is confronted to such a message, he may refer 
@@ -73,7 +73,7 @@ given at %SALOME start, writes the messages on the
 standard output, a file, or send them via CORBA, in 
 case of a multi machine configuration.
 
-Three informations are systematically added in front of 
+Three information are systematically added in front of 
 the information displayed:
 - the %thread number from which the message come from;
 - the name of the source file in which the macros is set;
@@ -84,7 +84,7 @@ the information displayed:
 
 - <b>INFOS_COMPILATION</b>\n
    The C++ macro INFOS_COMPILATION writes on the trace 
-   buffer pool informations about the compiling process: 
+   buffer pool information about the compiling process: 
    - the name of the compiler : g++, KCC, CC, pgCC;
    - the date and the time of the compiling processing process.
    .
index d68ced648db211a54cc87fe4081fa05b6676001e..e45374a3c2dc91cd512ddf7f2bf9947cf1de8c50 100644 (file)
@@ -40,7 +40,7 @@ systematically in your scripts, to allow them to work in all configurations.
 See \ref kernel_salome for a short description of most useful variables and
 functions.
 
-\subsection subsection12 Container and component instanciation
+\subsection subsection12 Container and component instantiation
 
 See SALOME_LifeCycleCORBA for the C++ interface (Python interface obtained with SWIG
 is very similar).
@@ -144,7 +144,7 @@ SalomeAppEngine.object
 See SALOME_FileTransferCORBA for the C++ interface (Python interface obtained with
 SWIG is very similar).
 
-The following example shows how to tranfer a file from a remote host to the
+The following example shows how to transfer a file from a remote host to the
 client computer. Remote hostname is 'cli76cc', we would like to copy
 'tkcvs_8_0_3.tar.gz' from remote to local computer. %A full pathname is
 required. %A container is created on remote computer if it does not exist,
index 40811aaccd8ea5b79ace756e2e41d229bee842bc..e89060e3424e7d6a7bfdbc7bc45df5ec61eec88f 100644 (file)
@@ -54,7 +54,7 @@ releases are identified by a CVS tag.
 
 \section S5_main SALOME programming model
 
-You will find in the next pages informations about
+You will find in the next pages information about
 specific points of %SALOME Kernel :
 
 - \subpage kernel_salome
index d013f7af1b2adb50cadf2e95553ed4e53c0f85e8..1a51120c14c287a576b59cee56efae47ecce525a 100644 (file)
@@ -13,7 +13,7 @@ included in source python files.
   - <a href="group__enumerate.html">enumerate</a> - Emulates a C-like enum for python
   - <a href="group__uiexception.html">uiexception</a> - %Exception for user error management
   - <a href="group__datamodeler.html">datamodeler</a> - Helper for modeling user data
-  - <a href="group__diclookup.html">diclookup</a> - Smart dictionnary with key/value lookup
+  - <a href="group__diclookup.html">diclookup</a> - Smart dictionary with key/value lookup
   - <a href="group__service.html">service</a> - Helper for using %SALOME kernel services
   - <a href="group__studyedit.html">studyedit</a> - Study editor
   - <a href="group__unittester.html">unittester</a> - Run very basic unit tests
index 475f8ecffda4fe77ae592adeb9eb673ea5eecc9c..ae36830c27c7c7d94da734a37c1ac14f95e20886 100644 (file)
@@ -43,7 +43,7 @@ The motivations of this objective are twice:
   modules coming from different %SALOME modules. Today, the developper
   of a module has to take care of the names used in other modules to
   choose a name.
-- Integrate in %SALOME some python modules initialy developed in the
+- Integrate in %SALOME some python modules initially developed in the
   context of domain specific %SALOME applications (%SALOME-MECA,
   %SALOME-CFD, OPENTURN, PANTHERE) and whose source files are organized
   in a packaged python structure.
@@ -76,7 +76,7 @@ and all other stuff should be imported and work as before).
 To reach this target, we have to face two problems:
 
 - %A naming conflict with the instruction <b>import salome</b>. The result
-  is unpredictible because of the existance in the <b>sys.path</b> of
+  is unpredictable because of the existence in the <b>sys.path</b> of
   both a file <b>salome.py</b> and a package \b salome.
 - The dispatching of <b>salome.*</b> sub-packages in the different %SALOME
   modules.
@@ -184,7 +184,7 @@ module are leaft untouched but the file <b>salome.py</b>.
 
 One special point for the documentation:
 
-- The documentation of the python package API is writen in HTML
+- The documentation of the python package API is written in HTML
   and generated form the source code with doxygen.
 - The *.dox (doxygen file) source files are located in the directory
   <b><srcdir>/doc/salome</b>.
index 92dc5fb5c2e99497371d4ca81a6ac5f75a1e6ff9..c909d4e3b4f0d8ce4ab48a920acfb3bdad481c78 100644 (file)
@@ -17,7 +17,7 @@ You can choose one of the following approaches:
 
 %A %SALOME user can define several %SALOME applications. These applications are
 runnable from the same user account. These applications may share the same
-KERNEL and modules. Thus, the application configuration is independant of
+KERNEL and modules. Thus, the application configuration is independent of
 KERNEL and must not be put in KERNEL_ROOT_DIR.
 
 Furthermore, prerequisites may not be the same on all the applications.
index d9fb7bcc24f4e647320d2f6462f741f11e1c922c..1011835692d6604d7f98c223c289668be8408dbb 100644 (file)
@@ -65,7 +65,7 @@ the unit tests.
 <b>Basic CORBA services</b>
 
 - Logger :\n
-  %A CORBA %server that collects the trace messages from differents CORBA 
+  %A CORBA %server that collects the trace messages from different CORBA 
   process. 
 
 - SALOMETraceCollector :\n
@@ -102,7 +102,7 @@ the unit tests.
   library included in container %server
 
 - Notification :\n
-  library included in differents servers (container)
+  library included in different servers (container)
 
 - NOTIFICATION_SWIG
 
index 503aceaa3f75e4e4990c793678709bef0b1eea08..0e2431c0a8ac2de85240ffc5ae1280fa1c62ec75 100644 (file)
@@ -51,7 +51,7 @@ module Engines {
     of the same interface type. When the connection is done, a component can use the "uses port" to use the 
     interface provided by the "provides port".
     
-    The interface DSC implements the component interface that containes the operations that are needed 
+    The interface DSC implements the component interface that contains the operations that are needed 
     to manage declarations into a component and connections between ports.
 
     These operations are logicaly divided in two parts :
index 3303ac682861693f56aee55907fe5fc854e94c99..8e8f4f218952fc666f754901263fdb2cf1b539ed 100644 (file)
@@ -758,7 +758,7 @@ Searches for a definite %SObject with a definite GUID and returns True if it fin
     Returns True if at this moment there is a command under execution.
 */
     boolean HasOpenCommand();
-/*! \brief Cancelation of the command
+/*! \brief Cancellation of the command
 
     Cancels all actions declared within the command.
 
@@ -904,7 +904,7 @@ Searches for a definite %SObject with a definite GUID and returns True if it fin
 /*! \brief Saving the study in a specified HDF file (or files).
 
     Saves the study in a specified file (or files).
-    \param aUrl The path to the definite file in whcih the study will be saved
+    \param aUrl The path to the definite file in which the study will be saved
     \param aStudy The study which will be saved
     \param theMultiFile If this parameter is True the study will be saved in several files.
 
@@ -917,7 +917,7 @@ Searches for a definite %SObject with a definite GUID and returns True if it fin
 
     Saves the study in a specified ASCII file (or files).
 
-    \param aUrl The path to the definite file in whcih the study will be saved
+    \param aUrl The path to the definite file in which the study will be saved
     \param aStudy The study which will be saved
     \param theMultiFile If this parameter is True the study will be saved in several files.
 */
@@ -1375,7 +1375,7 @@ can be called by any component and which provide the following functionality:
 <ul>
     <li> publishing in the study of the objects created by a definite component
     <li> saving/loading of the data created by a definite component. These methods are called by the StudyManager when loading/saving a study containing the data created by a definite component.
-    <li> transforming of the transient references into persistant references (or vice versa) of the SObjects when saving (or loading) a study
+    <li> transforming of the transient references into persistent references (or vice versa) of the SObjects when saving (or loading) a study
     <li> copy/paste common functionality. These methods can be called by any component in order to copy/paste its object created in the study
 </ul>
 
index ff66d52e4f00c64f2677fc49f9880f964a6aeb5e..5e19155725bf55e26f8706478cc9ea33e1c2964d 100644 (file)
@@ -657,7 +657,7 @@ module SALOMEDS
     \brief Tree node attribute.
 
     By specifying the tree node attributes for the SObjects it is possible to
-    create internal auxillary %object tree with its own structure and identifier.
+    create internal auxiliary %object tree with its own structure and identifier.
 
     Since each such tree is specfied by the unique identifier, it is possible
     to create as many trees as it is required.
@@ -829,7 +829,7 @@ module SALOMEDS
     \brief Attribute storing GUID.
     
     This attribute can be used to store arbitrary GUID. Attribute allowing to store GUID.
-    In contrast to any other atribute (e.g. AttributeLocalID), it is possible to
+    In contrast to any other attribute (e.g. AttributeLocalID), it is possible to
     define as many GUID attributes for the same SObject as it is required provided that
     they have different GUID values.
 
@@ -1068,7 +1068,7 @@ module SALOMEDS
     */
     void RemoveValue(in long row, in long column) raises(IncorrectIndex);
     /*!
-      \brief Sets the maximum number of colums in the table.
+      \brief Sets the maximum number of columns in the table.
 
       If new number of columns is less than the current one, the table is truncated
       (extra columns are removed).
@@ -1677,7 +1677,7 @@ module SALOMEDS
   /*!
     \brief Python %object attribute
 
-    This attribute is used to store pyton objects as a sequence of characters.
+    This attribute is used to store python objects as a sequence of characters.
   */
   //==========================================================================
   interface AttributePythonObject : GenericAttribute
index 1e6df762557371844dcea14fbd325cbc70a18093..930835584b115b046cb1aaa48fae600397185521 100644 (file)
@@ -80,7 +80,7 @@ module Engines
                            try to make a Python import of COMPONENT,
                            then a lib open of libCOMPONENTEngine.so
       \param reason      in case of error (return false) a string explaining the error
-      \return true if load successfull or already done, false otherwise
+      \return true if load successful or already done, false otherwise
     */
     boolean load_component_Library(in string componentName, out string reason);
 
@@ -102,7 +102,7 @@ module Engines
           This simply loads the service in the current container by importing the
           corresponding Python module.
           Warning: no internal registration is done, so it is up to the caller to
-          manage the various instanciation.
+          manage the various instantiation.
           \param serviceName Name of the service
 
                                 >0 otherwise (== study id)
@@ -369,7 +369,7 @@ module Engines
 
       \return CORBA Ref of the requested file.
 
-      \exception contains informations of what if the component cannot
+      \exception contains information of what if the component cannot
       sends the file's reference.
     */
     Engines::Salome_file getInputFileToService(in string service_name,
@@ -389,7 +389,7 @@ module Engines
 
       \param service_name service's name.
 
-      \exception contains informations about files that are not in a good state.
+      \exception contains information about files that are not in a good state.
     */
     void checkInputFilesToService(in string service_name)           raises(SALOME::SALOME_Exception);
 
@@ -415,7 +415,7 @@ module Engines
 
       \return CORBA Ref of the requested file.
 
-      \exception contains informations of what if the component cannot
+      \exception contains information of what if the component cannot
       sends the file's reference.
     */
     Engines::Salome_file getOutputFileToService(in string service_name,
@@ -435,7 +435,7 @@ module Engines
 
       \param service_name service's name.
 
-      \exception contains informations about files that are not in a good state.
+      \exception contains information about files that are not in a good state.
     */
     void checkOutputFilesToService(in string service_name)        raises(SALOME::SALOME_Exception);
 
@@ -589,7 +589,7 @@ module Engines
 
       \param hdf5_file name (with path) of the hdf5_file.
 
-      \exception contains informations of errors if the loading doesn't succeed.
+      \exception contains information of errors if the loading doesn't succeed.
      */
     void load(in string hdf5_file)                            raises (SALOME::SALOME_Exception);
 
@@ -598,7 +598,7 @@ module Engines
 
       \param  hdf5_file name (with path) of the hdf5_file.
 
-      \exception contains informations of errors if the save doesn't succeed.
+      \exception contains information of errors if the save doesn't succeed.
 
     */
     void save(in string hdf5_file)                            raises (SALOME::SALOME_Exception);
@@ -609,7 +609,7 @@ module Engines
 
       \param  hdf5_file name (with path) of the hdf5_file.
 
-      \exception contains informations of errors if the save doesn't succeed.
+      \exception contains information of errors if the save doesn't succeed.
 
     */
     void save_all(in string hdf5_file)                            raises (SALOME::SALOME_Exception);
index 68657c71a8ebe0acf5a8001468ea2cc9cebb7c3c..6b350082b6cf1653c203095b80bc8ffe46f0ec54 100644 (file)
@@ -60,7 +60,7 @@ struct ContainerParameters
   long nb_proc;
   //! if true start a MPI container
   boolean isMPI;
-  //! PaCO specific informations
+  //! PaCO specific information
   string parallelLib;
 
   //! Parameters to choose a resource
index fe3738a5d7e95a37fbda2f1d651b7d331a8b00f2..d68a7cea743764f8a7a5190a606f616b74116d3e 100644 (file)
@@ -94,16 +94,16 @@ struct JobParameters
       this directory. A change directory toward this working directory is done
       by the batch system before running the job.
       If not specified (empty string), the launcher will use the working
-      directory of the chosen ressource and if this is also an empty string
+      directory of the chosen resource and if this is also an empty string
       the value used will be $HOME/Batch/workdir_"date" where $HOME is the
-      value of the environment variable on the remote ressource and "date" is
+      value of the environment variable on the remote resource and "date" is
       the current date.
   */
   string work_directory;
 
   //! Prefix to be applied to #in_files.
   /*! It can be used to specify where to find the local input files.
-      It's optionnal if you specify the absolute path name of input files.
+      It's optional if you specify the absolute path name of input files.
   */
   string local_directory;
 
@@ -122,8 +122,8 @@ struct JobParameters
   */
   string maximum_duration; 
 
-  //! Specifies the rules to choose the ressource where to execute the job.
-  /*! The additionnal two following parameters MUST be specified explicitly,
+  //! Specifies the rules to choose the resource where to execute the job.
+  /*! The additional two following parameters MUST be specified explicitly,
       because they are not provided by the resource definition:
       - mem_mb -> Memory expressed in megabytes.
       - nb_proc -> Number of Processors.
index 0e1b77d9ac69de90a2f7be6367ec0fad13a4df23..19ff0f2cbd5af067d9197ae330a9e8067f758a40 100644 (file)
@@ -47,7 +47,7 @@ module Engines
     void defineNewCustomVar(in string varName, in pickledArgs valueOfVar) raises (SALOME::SALOME_Exception);
 
     /*!
-    This methode executes the python code in \a codeStr and can append/remove symboles in context to make them available or not for future call of execute on this.
+    This method executes the python code in \a codeStr and can append/remove symboles in context to make them available or not for future call of execute on this.
     \param [in] codeStr - the python code (without statement) to be executed, that can modify the context initialized at initialization.
      */
     void executeAnotherPieceOfCode(in string codeStr) raises (SALOME::SALOME_Exception);
index 06aea04856f0585f013741bb2c1c3adb5d8c9e4e..dd2887d547536c863f0f8ef34a6fa7e36c7f3a64 100644 (file)
@@ -32,7 +32,7 @@
 */
 module Registry
 {
-  //! a struct to collect informations about servers (processes)
+  //! a struct to collect information about servers (processes)
        struct Infos
        {
                string  name;
@@ -50,7 +50,7 @@ module Registry
                string  ior;            //  client 
        };
 
-  //! a list of informations
+  //! a list of information
        typedef sequence<Infos> AllInfos;
 
 /*! \brief interface to use %SALOME registry
@@ -67,7 +67,7 @@ module Registry
                void remove ( in unsigned long id ) ;
     //! Get the size of the registry
                unsigned long size() ;
-    //! Get all informations from registry
+    //! Get all information from registry
                AllInfos getall () ;
     //! Get history information from registry
                AllInfos history () ;
index 4884233bd0c5aa71abe28f49d96eeb585b4d2699..4dafdf76d27a983586d05f062c966bc9c55660da 100644 (file)
@@ -41,8 +41,8 @@ typedef sequence<long> IntegerList;
 struct ResourceParameters
 {
   //! resource name - manual selection
-  /*! If a name is provided, the ressource will be imposed.
-      If the name is an empty string, the ressource will be chosen to match
+  /*! If a name is provided, the resource will be imposed.
+      If the name is an empty string, the resource will be chosen to match
       the other parameters.
   */
   string name;
@@ -73,14 +73,14 @@ struct ResourceParameters
       The parameter specifies the maximum memory value that could be allocated
       for executing the job. This takes into account not only the data that
       could be loaded by the batch process but also the linked dynamic library.
-      A possible problem, for exemple in the case where you use the ssh
+      A possible problem, for example in the case where you use the ssh
       emulation of a batch system, is to get an error message as below
       when libBatch tries to run the ssh command:
 \verbatim
 /usr/bin/ssh: error while loading shared libraries: libcrypto.so.0.9.8: failed
 to map segment from shared object: Cannot allocate memory
 \endverbatim
-      In this exemple, the mem_mb was set to 1MB, value that is not
+      In this example, the mem_mb was set to 1MB, value that is not
       sufficient to load the dynamic libraries linked to the ssh
       executable (libcrypto.so in the error message).
       So, even in the case of a simple test shell script, you should
@@ -191,7 +191,7 @@ interface ResourcesManager
   string getMachineFile(in string resource_name, in long nb_procs, in string parallelLib)
     raises (SALOME::SALOME_Exception);
 
-  //! Return list of resources available (regarding containt of CatalogResources.xml). And for each resource the number of proc available of it.
+  //! Return list of resources available (regarding content of CatalogResources.xml). And for each resource the number of proc available of it.
   void ListAllAvailableResources(out ResourceList machines, out IntegerList nbProcsOfMachines) raises (SALOME::SALOME_Exception);
 };
 
index 24a707899834134cafc34785a708af7eba591f74..51048ba1a515716ec070f6a07c080c2b8e9ff838 100644 (file)
@@ -71,6 +71,12 @@ module SALOME
   {
     void shutdown();
   };
+  
+  interface RequestSwitcher
+  {
+    void holdRequests();
+    void activeRequests();
+  };
 
   interface DataScopeServerBase
   {
@@ -82,6 +88,8 @@ module SALOME
     boolean shutdownIfNotHostedByDSM(out DataScopeKiller killer) raises (SALOME::SALOME_Exception);
     ByteVec fetchSerializedContent(in string varName) raises (SALOME::SALOME_Exception);
     SeqOfByteVec getAllKeysOfVarWithTypeDict(in string varName) raises (SALOME::SALOME_Exception);
+    RequestSwitcher getRequestSwitcher();
+    void takeANap(in double napDurationInSec) raises (SALOME::SALOME_Exception);
   };
 
   interface DataScopeServer : DataScopeServerBase
index afe59a75cb20ed77996327c80aa998e61a1c4ac5..a6a92d4176f76206bcebcf253291a64b4ddb6d0a 100755 (executable)
@@ -152,7 +152,7 @@ NumAdminThreads             2
 
 # notifd may split the filter evaluation processing in two stages. In
 # this case, a second thread pool is used for evaluating proxy-level
-# filters.  The size of the pool is controled by the following 
+# filters.  The size of the pool is controlled by the following 
 
 NumProxyThreads                0
 
index 161a7285da624f4722995e0bc42f98caebfc3ce5..ee9c57bb4993f14f3dfaf651534b472abcf81daa 100644 (file)
@@ -157,7 +157,7 @@ STRIP_CODE_COMMENTS    = YES
 # file names in lower case letters. If set to YES upper case letters are also 
 # allowed. This is useful if you have classes or files whose names only differ 
 # in case and if your file system supports case sensitive file names. Windows 
-# users are adviced to set this option to NO.
+# users are advised to set this option to NO.
 
 CASE_SENSE_NAMES       = YES
 
index c793df7cdd62a33a3c872e5c33e7441ed74c777d..7f4736ce9555e8a53bac42766fabd1fe5a279c50 100644 (file)
@@ -32,7 +32,7 @@
 # Client and server object are the same with omniorb
 # There are one header file and one source file generate
 #IDLOBJ=$(IDLSRC:%.idl=%$(IDL_CLN_OBJ))
-# dependancies between idl and it's generated files
+# dependencies between idl and its generated files
 #
 %$(OMNIORB_IDL_CLN_CXX) %$(OMNIORB_IDL_CLN_H): ${top_builddir}/idl/%.idl
        $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
index 0ce538bb85cc7ee026a4f024e6572cb1ce99b522..6e0d66cdc4369098be8d361ea4ef79833f919212 100755 (executable)
@@ -709,7 +709,7 @@ main(argc, argv)
 #if defined(__GLIBC__)
   printf("%s %s\n", __libc_version, __libc_release);
 #else
-  printf("unkown\n");
+  printf("unknown\n");
 #endif
   return 0;
 }
index 251394b4d4e943fa4ae95c46e7108c4479d4c65f..700bdeb560adb5042939eed617a6b98d370712bb 100644 (file)
@@ -1887,8 +1887,8 @@ EOF
              fi
            done
          else
-           # Error occured in the first compile.  Let's try to salvage the situation:
-           # Compile a seperate program for each library.
+           # Error occurred in the first compile.  Let's try to salvage the situation:
+           # Compile a separate program for each library.
            for i in $deplibs; do
              name="`expr $i : '-l\(.*\)'`"
             # If $name is empty we are operating on a -L argument.
@@ -3726,7 +3726,7 @@ libdir='$install_libdir'\
         eval "export $shlibpath_var"
       fi
 
-      # Restore saved enviroment variables
+      # Restore saved environment variables
       if test "${save_LC_ALL+set}" = set; then
        LC_ALL="$save_LC_ALL"; export LC_ALL
       fi
index bda90d46c6b432cab855fa3b050e4f70982688fb..8275f5daef69d64c5f1a08384612c1edad71c8cd 100644 (file)
@@ -150,7 +150,7 @@ dnl  MACHINE="PCLINUX"
     fi
  done
 
-dnl use gcc option -MG : asume unknown file will be construct later
+dnl use gcc option -MG : assume unknown file will be construct later
  rm -f conftest.d conftest.err
  ${DEPCC} ${C_DEPEND_FLAG} -MG -c conftest.c 1> conftest.d 2> conftest.err
  if test -f conftest.u ; then
@@ -191,7 +191,7 @@ dnl use gcc option -MG : asume unknown file will be construct later
     fi
  done
 
-dnl use g++ option -MG : asume unknown file will be construct later
+dnl use g++ option -MG : assume unknown file will be construct later
  rm -f conftest.d conftest.err
  ${DEPCXX} ${CXX_DEPEND_FLAG} -MG -c conftest.cxx 1> conftest.d 2> conftest.err
  if test -f conftest.u ; then
index 83c01dd393aeadd1ea49e0303907deb58ef84f5e..b46b8fc21509d8c87961a6bdfc8c4b2c08d2e637 100644 (file)
@@ -25,7 +25,7 @@ dnl Check options for C++ compiler
 dnl @author Bernard Secher - 15/01/2004
 dnl
 AC_DEFUN([AC_CXX_OPTION], [
-  AC_MSG_CHECKING(wether $CXX accepts $1)
+  AC_MSG_CHECKING(whether $CXX accepts $1)
   cat > conftest.cxx <<EOF
 int main() { return 0; }
 EOF
index 978b3082801dc059e02cafdbf6a002f499899601..e2c782e3b48bb847524881ae415d1d87aaa5b767 100644 (file)
@@ -49,7 +49,7 @@ then
      CALCIUM_IDL_INT_F77="long"
      CALCIUM_CORBA_INT_F77="CORBA::Long"
   else
-     AC_MSG_ERROR([Size of Fortran type integer is neither four nor eigth bytes])
+     AC_MSG_ERROR([Size of Fortran type integer is neither four nor eight bytes])
   fi
 
 elif test "x$withval" = "xint"
index 927dbbcee8c3ff33bdf7b61f3336e1caad1ca11f..b93b17c13c50060d627b4eef221b668d9ee822f8 100644 (file)
@@ -127,7 +127,7 @@ public :
  * 
  * Note that neither ptrPoint, nor ptrDestruct should be destroyed by the user.
  * 
- * The destruction object must be created dynamically because it suscribes
+ * The destruction object must be created dynamically because it subscribes
  * itself in the list of destruction to be performed at the end of the process.
  */ 
 // ============================================================================
index 549ebafc218cbc3c87c28f520269dacfad651644..6a52479a136282178d3c43098f5ff822a959070d 100644 (file)
@@ -18,7 +18,7 @@
 //
 
 //  File   : Basics_DirUtils.cxx
-//  Autor  : Alexander A. BORODIN
+//  Author  : Alexander A. BORODIN
 //  Module : SALOME
 //
 #include "Basics_DirUtils.hxx"
index edc100ebe50ba9c29d2af6e8c3099dcd2f83a162..5c27021f64815007623e91668fda7f21eb2c7fac 100644 (file)
@@ -19,7 +19,7 @@
 
 //  SALOME Utils : general SALOME's definitions and tools
 //  File   : Basics_DirUtils.hxx
-//  Autor  : Alexander A. BORODIN
+//  Author  : Alexander A. BORODIN
 //  Module : SALOME
 //
 #ifndef _Basics_DIRUTILS_HXX_
index 73b4e800ee4bb566668877cfd708cee55bbd86ac..0487829cb9aabe886b0db760dbb0ca037e3bb8cc 100644 (file)
@@ -18,7 +18,7 @@
 //
 
 //  File   : Basics_Utils.cxx
-//  Autor  : Alexander A. BORODIN
+//  Author  : Alexander A. BORODIN
 //  Module : SALOME
 //
 
index 5843afb7524c41a3232040f01c2e5edd05bb84ed..868fd3f9a8f1222978ec3a5f0220ae0a94221891 100644 (file)
@@ -19,7 +19,7 @@
 
 //  SALOME Utils : general SALOME's definitions and tools
 //  File   : Basics_DirUtils.hxx
-//  Autor  : Alexander A. BORODIN
+//  Author  : Alexander A. BORODIN
 //  Module : SALOME
 //
 #ifndef _Basics_UTILS_HXX_
index 30df15db153b3c4fcefefaa425e5b451a357290e..52d59cf18a7ad0c7841a197dd75a2cf5be9647bc 100644 (file)
@@ -43,7 +43,7 @@ CORBA::ORB_var &getGlobalORB(){
 #endif
 
 /*! Return the C++ data associated to the array to transmit.
-  Used when sender and receiver are collocalized.
+  Used when sender and receiver are colocalized.
  */
 const void *SALOME_Sender_i::getData(long &size) const{
   size=_lgrTabToSend;
@@ -94,7 +94,7 @@ SALOME::SenderDouble_ptr SALOME_SenderDouble_i::buildOtherWithProtocol(SALOME::T
   return SenderFactory::buildSender(type,this);
 }
 
-/*! Method to establish if the CORBA object refered by pCorba is collocalised.\n
+/*! Method to establish if the CORBA object referred by pCorba is colocalized.\n
   If it is, the pointer to the servant that incarnates the CORBA object is returned.
 */
 SALOME_SenderDouble_i *SALOME_SenderDouble_i::find(SALOME::SenderDouble_ptr pCorba){
@@ -128,7 +128,7 @@ SALOME::SenderInt_ptr SALOME_SenderInt_i::buildOtherWithProtocol(SALOME::TypeOfC
   return SenderFactory::buildSender(type,this);
 }
 
-/*! Method to establish if the CORBA object refered by pCorba is collocalised.\n
+/*! Method to establish if the CORBA object referred by pCorba is colocalized.\n
   If it is, the pointer to the servant that incarnates the CORBA object is returned.
 */
 SALOME_SenderInt_i *SALOME_SenderInt_i::find(SALOME::SenderInt_ptr pCorba){
index 311b5f7d8d282c67d729fee02288a586d79026a8..6cbff9c6d42864b257994131caaaf586eed26a45 100644 (file)
@@ -849,7 +849,7 @@ long Engines_Component_i::CpuUsed()
       //      << _StartUsed << std::endl ;
     }
 #else
-        // NOT implementet yet
+        // NOT implemented yet
 #endif
 
 
index b681a0124fcf7595b4e1eadab09e5016772a86c7..19eb2de774098aa9bd0f5a93448c5a33b6b6302c 100644 (file)
@@ -125,7 +125,7 @@ _numInstance(0),_id(0),_NS(0)
 
 //=============================================================================
 /*! 
-*  Construtor to use
+*  Constructor to use
 */
 //=============================================================================
 
@@ -406,7 +406,7 @@ void Engines_Container_i::Shutdown()
 *  CORBA method
 *  \param componentName         component name
 *  \param reason                explains error when load fails
-*  \return true if dlopen successfull or already done, false otherwise
+*  \return true if dlopen successful or already done, false otherwise
 */
 //=============================================================================
 bool
@@ -494,7 +494,7 @@ Engines_Container_i::load_component_Library(const char* componentName, CORBA::St
 *  C++ method: 
 *  \param componentName      the name of the component (COMPONENT, for example)
 *  \param reason             explains error when load fails
-*  \return true if loading is successfull or already done, false otherwise
+*  \return true if loading is successful or already done, false otherwise
 */
 //=============================================================================
 bool
@@ -579,7 +579,7 @@ Engines_Container_i::load_component_CppImplementation(const char* componentName,
 *  C++ method: 
 *  \param componentName         name of the component
 *  \param reason                explains error when load fails
-*  \return true if loading is successfull or already done, false otherwise
+*  \return true if loading is successful or already done, false otherwise
 */
 //=============================================================================
 bool
@@ -634,7 +634,7 @@ Engines_Container_i::load_component_PythonImplementation(const char* componentNa
 *  C++ method: 
 *  \param componentName        name of the component
 *  \param reason               explains error when load fails
-*  \return true if loading is successfull or already done, false otherwise
+*  \return true if loading is successful or already done, false otherwise
 */
 //=============================================================================
 bool
@@ -1082,7 +1082,7 @@ Engines_Container_i::createInstance(std::string genericRegisterName,
     std::string component_registerName =
       _containerName + "/" + instanceName;
 
-    // --- Instanciate required CORBA object
+    // --- Instantiate required CORBA object
 
     PortableServer::ObjectId *id ; //not owner, do not delete (nore use var)
     id = (Component_factory) ( _orb, _poa, _id, instanceName.c_str(),
@@ -1121,7 +1121,7 @@ Engines_Container_i::createInstance(std::string genericRegisterName,
   }
   catch (...)
   {
-    reason="Container_i::createInstance exception catched";
+    reason="Container_i::createInstance exception caught";
     INFOS(reason) ;
   }
   return iobject._retn();
@@ -1347,7 +1347,7 @@ Engines_Container_i::find_or_create_instance(std::string genericRegisterName,
     }
     catch (...)
     {
-      INFOS( "Container_i::load_impl catched" ) ;
+      INFOS( "Container_i::load_impl caught" ) ;
     }
     return iobject._retn();
   }
@@ -1550,7 +1550,7 @@ Engines_Container_i::createFileRef(const char* origFileName)
 
   if (origName[0] != '/')
   {
-    INFOS("path of file to copy must be an absolute path begining with '/'");
+    INFOS("path of file to copy must be an absolute path beginning with '/'");
     return Engines::fileRef::_nil();
   }
 
index fcd1444b1e1f45e2b039c6724892e6ef6ee250d3..a104432c743f688f9989b4cea9b3391469c8bfc1 100644 (file)
@@ -726,7 +726,7 @@ bool isPythonContainer(const char* ContainerName)
  *  ssh user@machine distantPath/runRemote.sh hostNS portNS WORKINGDIR workingdir \
  *                   SALOME_Container containerName &"
 
- *  - where user is ommited if not specified in CatalogResources,
+ *  - where user is omitted if not specified in CatalogResources,
  *  - where distant path is always relative to user@machine $HOME, and
  *    equal to $APPLI if not specified in CatalogResources,
  *  - where hostNS is the hostname of CORBA naming server (set by scripts to
@@ -1517,7 +1517,7 @@ SALOME_ContainerManager::StartPaCOPPContainer(const Engines::ContainerParameters
     }
     catch (...)
     {
-      INFOS("[StarPaCOPPContainer] Exception catched from proxy Shutdown...");
+      INFOS("[StarPaCOPPContainer] Exception caught from proxy Shutdown...");
     }
     return ret;
   }
@@ -1948,7 +1948,7 @@ SALOME_ContainerManager::LaunchPaCOProxyContainer(const std::string& command,
 
 //=============================================================================
 /*! This method launches the parallel container.
- *  It will may be placed on the ressources manager.
+ *  It will may be placed on the resources manager.
  *
  * \param command to launch
  * \param container's parameters
index 4da4bacad72a5bc514c529ade61c08aa1dce5a1b..ac5f038949ee231382f458c031ed2153818992eb 100755 (executable)
@@ -94,7 +94,7 @@ class SALOME_ContainerPy_i (Engines__POA.Container):
         #shstr = "runSession SALOME_ContainerPy.py "
         shstr += ContainerName
 
-        # mpv: fix for SAL4731 - allways create new file to write log of server
+        # mpv: fix for SAL4731 - always create new file to write log of server
         num = 1
         fileName = ""
         while 1:
index 09a65f37ff825811143122e4a46a3ec1d67eb305..5dbd56dd70ba829201cfefe43d18d07fd6a7da4b 100644 (file)
@@ -120,7 +120,7 @@ Engines::Container_ptr fileRef_i::getContainer()
  *  CORBA method: after a file transfer on a client computer, registers 
  *  hostname of client and file path of the copied file.
  *  \param machine client hostname
- *  \param fileName asolute path of the transfered file on client computer
+ *  \param fileName absolute path of the transferred file on client computer
  */
 //=============================================================================
 
@@ -133,7 +133,7 @@ CORBA::Boolean fileRef_i::addRef(const char* machine,
 
   if (theFileName[0] != '/')
     {
-      INFOS("destination file path must be absolute, begining with '/'");
+      INFOS("destination file path must be absolute, beginning with '/'");
       return 0;
     }
 
index da9b272b7d75742e5cc2c33d74c88bb5f898b7c0..9f4a0b21c24381f76f234acc1cbf745c0f7d8f5e 100644 (file)
@@ -62,7 +62,7 @@ fileTransfer_i::~fileTransfer_i()
  *
  *  CORBA method: try to open the file. If the file is readable, return
  *  a positive integer else return 0;
- *  \param  fileName path to the file to be transfered
+ *  \param  fileName path to the file to be transferred
  *  \return fileId = positive integer > 0 if open OK.
  */
 //=============================================================================
@@ -144,7 +144,7 @@ Engines::fileBlock* fileTransfer_i::getBlock(CORBA::Long fileId)
  *
  *  CORBA method: try to open the file. If the file is writable, 
  *  return a positive integer else return 0;
- *  \param  fileName path to the file to be transfered
+ *  \param  fileName path to the file to be transferred
  *  \return fileId = positive integer > 0 if open OK.
  */
 CORBA::Long fileTransfer_i::openW(const char* fileName)
index 29c23493621ff2fdbd7896b6071a0b1cbfa115a8..6a089f14b914c689a090c8a21deaa9d9875304e2 100644 (file)
@@ -373,7 +373,7 @@ Salome_file_i::save_all(const char* hdf5_file) {
   }
 
   // For each file we create two groups
-  // First group contains file's informations
+  // First group contains file's information
   // Second group contains the file
   // At the end we create a group and a dataset containing the names
   // of all the files.
@@ -527,7 +527,7 @@ Salome_file_i::setLocalFile(const char* comp_file_name)
   if(fopen(comp_file_name,"rb") != NULL)
     status = "ok";
 
-  // Adding file with is informations
+  // Adding file with its information
   Engines::file infos;
   infos.file_name = CORBA::string_dup(file_name.c_str());
   infos.path = CORBA::string_dup(path.c_str());
@@ -585,7 +585,7 @@ Salome_file_i::setDistributedFile(const char* comp_file_name)
     throw SALOME::SALOME_Exception(es);
   }
 
-  // Adding file with his informations
+  // Adding file with its information
   Engines::file infos;
   infos.file_name = CORBA::string_dup(file_name.c_str());
   infos.path = CORBA::string_dup(path.c_str());
@@ -962,7 +962,7 @@ Salome_file_i::getSalome_fileState()
 /*! 
  *  CORBA method: try to open the file given. If the file is readable, return
  *  a positive integer else return 0;
- *  \param  fileName file name to be transfered
+ *  \param  fileName file name to be transferred
  *  \return fileId = positive integer > 0 if open OK.
  */
 //=============================================================================
index c6f1b84f12ddf0e0ba7f8fcd8c43d30c964ee635..c5f1617f7575d9f716edac889ab906475695aa37 100644 (file)
@@ -67,7 +67,7 @@ class CONTAINER_EXPORT Salome_file_i:
     virtual void removeFile(const char* file_name);
     virtual void removeFiles();
 
-    // Informations methods:
+    // Information methods:
     virtual void setContainer(Engines::Container_ptr container);
     virtual Engines::files* getFilesInfos();
     virtual Engines::file* getFileInfos(const char* file_name);
@@ -89,7 +89,7 @@ class CONTAINER_EXPORT Salome_file_i:
     // a fd descriptor (FILE*) open on the file.
     typedef std::map<int, FILE*> _t_fileAccess;
 
-    // Contains the informations of the files managed by the Salome_file.
+    // Contains the information of the files managed by the Salome_file.
     typedef std::map<std::string, Engines::file> _t_fileManaged;
 
     // Contains the CORBA reference for each distributed file managed.
index 4a118c8e8552b5c12d81c7b5b1fd56d7f8027e7e..424dd6a4a9dc0a1ab758f291456645fbeb0c23b4 100644 (file)
@@ -194,7 +194,7 @@ const char* typecode_string(int typecode) {
         "unsigned short","int","unsigned int","long","unsigned long",
         "longlong","unsigned longlong",
         "float","double","long double","complex float","complex double","complex long double",
-        "object","string","unicode","void","ntypes","notype","char","unkown"};
+        "object","string","unicode","void","ntypes","notype","char","unknown"};
   return type_names[typecode];
 }
 
index d390c9f28c980dc55b690ffa07967a39aaffc590..8ce0ffabadc49aa1a59f48c9ea48964a74e24790 100755 (executable)
@@ -29,7 +29,7 @@ INCLUDE_DIRECTORIES(
 ADD_SUBDIRECTORY(Palm)
 ADD_SUBDIRECTORY(Calcium)
 
-# This local variable defines the list of dependant libraries common to all target in this package.
+# This local variable defines the list of dependent libraries common to all target in this package.
 SET(COMMON_LIBS
   SalomePalm
   SalomeCalcium
index 71b44e1129f2cce3f186d5d1ae171b75c5c0e62a..3f5e0e1a1f7e42771e7b4893ad563b4effecd39a 100644 (file)
@@ -79,7 +79,7 @@ void HDFfile::OpenOnDisk(hdf_access_mode access_mode)
       break;
       
     default :
-      throw HDFexception("Can't open HDF file : bad acces option");
+      throw HDFexception("Can't open HDF file : bad access option");
     }
 }
 
index 1d01bf446a9fb05ceabfbdf1356994d60e76920e..1a9d734ab2adc4fa0f3ef53765e90232efde1d60 100644 (file)
@@ -34,7 +34,7 @@ SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
  * - Description : returns the number of HDF objets in a HDF group
  * - Parameters :
  *     - fid     (IN)     : HDF file ID
- *     - path    (IN)     : acces path to the HDF group in the HDF file
+ *     - path    (IN)     : access path to the HDF group in the HDF file
  * - Results :
  *     - if success : number of objects
  *     - if failure : -1 
index 9e452fe2e1a5db71f5cbf2646e2e21b979e46197..e57001e88de7cc1c4df76e3969be00184b8436cc 100644 (file)
@@ -39,7 +39,7 @@ SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
  *     - i (IN)           : access rank
  *     - name (OUT)       : expected name
  * - Result : 
- *     - if sucess : 0
+ *     - if success : 0
  *     - if failure : -1
  */ 
 
index bdfb2d58d39d13d23cb55d3ca1ee720deafebd0f..ffca9bf3756374adf5c66625d16f4abccd92ef88 100644 (file)
@@ -60,7 +60,7 @@ int main()
 
       // Transfert d'un fichier ASCII dans un groupe HDF
       HDFConvert::FromAscii("ascii.txt",*hdf_group,"ASCII DATASET");
-      MESSAGE( ">> The Ascii file is transfered " );
+      MESSAGE( ">> The ASCII file is transferred " );
  
       // The HDF group is built, it can be closed
       hdf_group->CloseOnDisk();
index 7948abe7f5dc99d7187f2d15e9e0884f104e0d28..943e1ddc858419e2b89e7d0ee2616fb6f1f9cb7c 100755 (executable)
@@ -36,7 +36,7 @@ class SalomeDoc:
         doc_salome = '''
 MODULE : salome
 ---------------
-module salome gives access to Salome ressources:
+module salome gives access to Salome resources:
 variables:
 
   salome.orb             : CORBA
@@ -134,7 +134,7 @@ A new python example avoids references to LifeCycleCORBA
 
 Help = SalomeDoc('''
 Availables modules:
-  salome      : gives access to Salome ressources
+  salome      : gives access to Salome resources
   geompy      : encapsulation of GEOM Engine methods
   supervision : gives access to SuperVision Engine
 To obtain specific help on a module "truc", type: Help.truc()
index 84f40c655522f7f09a873504c14e9752910dd7ed..ce4a8d46e82aa6b07fefcd97aa903c7b61f02a4f 100755 (executable)
@@ -26,7 +26,7 @@
 #  Module : SALOME
 #
 """ 
-Module salome gives access to Salome ressources.
+Module salome gives access to Salome resources.
 
 variables:
 
@@ -71,7 +71,7 @@ variables:
 
 """
 ## @package salome
-# Module salome gives access to Salome ressources.
+# Module salome gives access to Salome resources.
 #
 #  \param salome.orb             : CORBA orb object
 #  \param salome.naming_service  : instance of naming Service class (SALOME_NamingServicePy::SALOME_NamingServicePy_i)
@@ -233,7 +233,7 @@ def salome_init(theStudyId=0,embedded=0):
         print """
         ============================================
         May be there is no running SALOME session
-        salome.salome_init() is intented to be used
+        salome.salome_init() is intended to be used
         within an already running session
         ============================================
         """
index 263e6855c6a9c09fa4e2a9f482c88d6db7c26d66..1ec0eab1750e08177fa494d76245c734086a4a53 100644 (file)
@@ -23,7 +23,7 @@
 
 ## \defgroup diclookup diclookup
 #  \{ 
-#  \details Smart dictionnary with key/value lookup
+#  \details Smart dictionary with key/value lookup
 #  \}
 
 __author__="gboulant"
index fa011080b92408734417d21720eaae7429f119a4..8c21ec5686cbe7cf775be509c2ec1a9768761a01 100644 (file)
@@ -75,7 +75,7 @@ class PyUnitTester():
         for suite in self.__listTestSuite:
             runner.run(suite)
 
-        # Finally close the ouput stream and print the report
+        # Finally close the output stream and print the report
         logfile.close()
         self.printreport()
 
index 21cd9ee6af956d11ff73fc6b430caa90cb03ae3e..76485786f1d0c71a9755b128fc058d5abd9d7d14 100644 (file)
@@ -133,7 +133,7 @@ def TEST_useBadRange():
 def TEST_serialize():
     import salome.kernel
     ref_testdata = TestData()
-    ref_testdata.setName("The firts name")
+    ref_testdata.setName("The first name")
     res_testdata = salome.kernel.unserialize(salome.kernel.serialize(ref_testdata))
 
     print res_testdata.getName()
index d1d2c8e2e38b6292e32e7e3b96d0b16a26124c33..b777c45677a8b564a0387f9f2833d1cadf1e3b29 100644 (file)
@@ -66,9 +66,9 @@ class UiException(Exception):
     def getUIMessage(self):
         return self._UImessage
 
-    ## Specify the type of this exception. To be choosen in the TYPES list.
+    ## Specify the type of this exception. To be chosen in the TYPES list.
     def setType(self, type):
-        """Specify the type of this exception. To be choosen in the TYPES list."""
+        """Specify the type of this exception. To be chosen in the TYPES list."""
         if not self.TYPES.isValid(type):
             raise UiException("The exception type "+str(type)+" can't be used",self.TYPES.DEVEL)
         self._type = type
index be7c3baac94b7286ef5a565d00939a8d3616c856..1a0001b98f0e1d6ce625109169aadf7e5aaad500 100644 (file)
@@ -53,15 +53,15 @@ def run(modulePath, functionName):
         print "[TEST] %s.%s %s NOT OK" % (moduleName, functionName,"."*tabsize)
 
 ## This function is for debug only. It executes the specified function with the
-#  specified arguments in a try/except bloc so that to display the exception in
-#  the case where an exception is raised (usefull to debug server side of a CORBA
+#  specified arguments in a try/except block so as to display the exception in
+#  the case where an exception is raised (useful to debug server side of a CORBA
 #  process).
 #  \ingroup unittester
 def tryfunction(function,*argv):
     """
     This function is for debug only. It executes the specified function with the
-    specified arguments in a try/except bloc so that to display the exception in
-    the case where an exception is raised (usefull to debug server side of a CORBA
+    specified arguments in a try/except block so as to display the exception in
+    the case where an exception is raised (useful to debug server side of a CORBA
     process).
     """
     print "[TEST] trying the function %s" % function
index 1e2c0e7c6b21e28b38a305ada5d9561c5460f27b..963b1e3cbdd0a4b6d8d425bef0c3e9cae6d059e4 100644 (file)
@@ -41,7 +41,7 @@ shared_imported={}
 # Function to return a Python module for the required IDL module name
 def openModule(mname, fname=None):
     # Salome modification start
-    # Be sure to use the right module dictionnary
+    # Be sure to use the right module dictionary
     import sys
     # Salome modification end
 
@@ -87,7 +87,7 @@ def openModule(mname, fname=None):
 # already exist
 def newModule(mname):
     # Salome modification start
-    # Be sure to use the right module dictionnary
+    # Be sure to use the right module dictionary
     import sys
     # Salome modification end
 
@@ -117,7 +117,7 @@ def newModule(mname):
 # partial module map
 def updateModule(mname):
     # Salome modification start
-    # Be sure to use the right module dictionnary
+    # Be sure to use the right module dictionary
     import sys
     # Salome modification end
     if _partialModules.has_key(mname):
index 283c5685c79997a4dfb57e919db92bc1b9d63c7a..67413b0f83f6521fab48de063e387d87df9f2768 100755 (executable)
@@ -26,7 +26,7 @@
 #  Module : SALOME
 #  $Header$
 ## @package salome_iapp
-# Module salome gives access to Salome GUI ressources (if GUI has been launched).
+# Module salome gives access to Salome GUI resources (if GUI has been launched).
 #
 import salome_ComponentGUI
 
index 481c1ac13c3ddd45573527ed097984f152bddba3..da50bdb075ca1530a1bd690bd0a7f75269a36411 100644 (file)
@@ -63,7 +63,7 @@ namespace KERNEL {
   /**
    * This returns a static reference to the SALOME study manager. The
    * study manager can be used to retrieve a study or to get
-   * informations about a study.
+   * information about a study.
    */
   SALOMEDS::StudyManager_ptr getStudyManager() {
     static SALOMEDS::StudyManager_ptr aStudyManager;
@@ -157,7 +157,7 @@ namespace KERNEL {
          anObject = anORB->string_to_object(aValue);
       }
     }catch(...){
-      INFOS("SObjectToObject - Unknown exception was occured!!!");
+      INFOS("SObjectToObject - Unknown exception has occurred!!!");
     }
     return anObject._retn();
   }
index 4a0bb43969c13bb4720cbe6eaa923d824ec14a36..6eabba0e0202a32d8bef744b6da4f76621e60712 100644 (file)
@@ -109,7 +109,7 @@ void SALOME_StudyEditor::setIcon(SALOMEDS::SObject_var sobject, const char * res
 
 //
 // MEM: AttributeParameter
-// Note that the AttributeParameter is a multitype dictionnary whose
+// Note that the AttributeParameter is a multitype dictionary whose
 // keys are the names specified when setting the value
 //
 
index d81ef8a04b07510118e60e94c5636ec773ea1bd0..c9b96b257d753047b6cd5ac280bd4a7e4a835dc1 100644 (file)
@@ -435,7 +435,7 @@ BatchTest::test_jobsubmit_simple()
   file_normal.close();
   if (normal_input != "Bonjour")
   {
-    result += "error from simple ouput file ! waiting for Bonjour and get : " + normal_input;
+    result += "error from simple output file ! waiting for Bonjour and get : " + normal_input;
     return result;
   }
   std::string error_input;
@@ -663,7 +663,7 @@ BatchTest::test_jobsubmit_mpi()
   file_normal.close();
   if (!test_ok)
   {
-    result += "error from mpi ouput file ! waiting for HELLO MPI please watch /tmp/" + _date + "_mpi_output.log file";
+    result += "error from mpi output file ! waiting for HELLO MPI please watch /tmp/" + _date + "_mpi_output.log file";
     return result;
   }
   result = "OK";
index e85ee37b1628edb26b8ac9ae71b8f02a2a921d83..87737c5957889e1ea1986a32eb16cb2b5c87c91e 100755 (executable)
@@ -45,7 +45,7 @@ IF(SALOME_USE_LIBBATCH)
   ADD_DEFINITIONS(-DWITH_LIBBATCH)
 ENDIF(SALOME_USE_LIBBATCH)
 
-# This local variable defines the list of dependant libraries common to all target in this package.
+# This local variable defines the list of dependent libraries common to all target in this package.
 SET(COMMON_LIBS
   Registry
   SalomeNotification
index bd3f5d4b0915d8571b746c01956047b407e32b47..dfe536112ea084c6f090074717a6581dbc9d184e 100644 (file)
@@ -133,7 +133,7 @@ Launcher_cpp::launchJob(int job_id)
     throw LauncherException("Bad state of the job: " + job->getState());
   }
 
-  // Third step search batch manager for the job into the map -> instanciate one if does not exist
+  // Third step search batch manager for the job into the map -> instantiate one if does not exist
 #ifdef WITH_LIBBATCH
   std::map<int, Batch::BatchManager *>::const_iterator it = _batchmap.find(job_id);
   if(it == _batchmap.end())
@@ -426,7 +426,7 @@ Launcher_cpp::createJobWithFile(const std::string xmlExecuteFile,
 
 //=============================================================================
 /*!
- *  Factory to instanciate the good batch manager for choosen cluster.
+ *  Factory to instantiate the good batch manager for chosen cluster.
  */ 
 //=============================================================================
 Batch::BatchManager *
@@ -524,7 +524,7 @@ Launcher_cpp::FactoryBatchManager(ParserResourcesType& params)
     LAUNCHER_MESSAGE("Cannot find batch manager factory for " << bmType << ". Check your version of libBatch.");
     throw LauncherException("Cannot find batch manager factory");
   }
-  LAUNCHER_MESSAGE("Instanciation of batch manager of type: " << bmType);
+  LAUNCHER_MESSAGE("Instantiation of batch manager of type: " << bmType);
   Batch::BatchManager * batch_client = (*fact)(hostname.c_str(), params.UserName.c_str(),
                                                protocol, mpi.c_str());
   return batch_client;
@@ -665,7 +665,7 @@ Launcher_cpp::createBatchManagerForJob(Launcher::Job * job)
 {
   int job_id = job->getNumber();
 
-  // Select a ressource for the job
+  // Select a resource for the job
   std::vector<std::string> ResourceList;
   resourceParams params = job->getResourceRequiredParams();
   // Consider only resources that can launch batch jobs
@@ -788,7 +788,7 @@ Launcher_cpp::loadJobs(const char* jobs_file)
     {
       if (job_state == "CREATED")
       {
-        // In this case, we ignore run_part informations
+        // In this case, we ignore run_part information
         createJob(new_job);
         new_jobs_id_list.push_back(new_job->getNumber());
       }
@@ -814,7 +814,7 @@ Launcher_cpp::loadJobs(const char* jobs_file)
                job_state == "FAILED"   ||
                job_state == "ERROR")
       {
-        // Step 2: We add run_part informations
+        // Step 2: We add run_part information
         addJobDirectlyToMap(new_job);
         new_jobs_id_list.push_back(new_job->getNumber());
       }
index e046fd8cfc14d88b8f5ed7a3fed573a1873bdb47..2aae078fe1c87935dfc66f88c8d313d90f22da06 100644 (file)
@@ -525,7 +525,7 @@ Launcher::Job::getLaunchDate() const
         launch_date[i] == ':' ||
         launch_date[i] == ' ')
       launch_date[i] = '_';
-  launch_date.erase(--launch_date.end()); // Last caracter is a \n
+  launch_date.erase(--launch_date.end()); // Last character is a \n
 
   return launch_date;
 }
index d37cb04e56d910582ffa6d460c913facd9ad1020..9a524131dd964c5ad282a1ebb350de91b89e4ba5 100644 (file)
@@ -356,7 +356,7 @@ SALOME_Launcher::stopJob(CORBA::Long job_id)
 /*! CORBA Method:
  *  Create a job in the launcher with a file
  *  \param xmlExecuteFile     : .xml to parse that contains job description
- *  \param clusterName        : machine choosed
+ *  \param clusterName        : machine chosen
  */
 //=============================================================================
 CORBA::Long 
index 546b0057fda6241aad64b9d312a5edfc8c947078..33dbf00444044949d0d21cdd2708dc7952e4f3bf 100755 (executable)
@@ -20,10 +20,10 @@ def mkdir_p(path):
 # Test of SalomeLauncher.
 # This test should be run in the salome environment, using "salome shell"
 # and a salome application should be running.
-# The test will try to launch batch jobs on every available ressources which
+# The test will try to launch batch jobs on every available resources which
 # have the can_launch_batch_jobs parameter set to True.
 # You can use the environment variable USER_CATALOG_RESOURCES_FILE in order to
-# define a customised ressource catalog.
+# define a customised resource catalog.
 # If YACS_ROOT_DIR is not set, the test of submitting a YACS schema will be
 # skiped.
 class TestCompo(unittest.TestCase):
index 75bf0dd5ee72f618b6f6560013141cb96770c096..cf181f04e194100de5915fd8a1f67dbe1a12acbc 100644 (file)
@@ -102,7 +102,7 @@ SALOME_LifeCycleCORBA::SALOME_LifeCycleCORBA(SALOME_NamingService *ns)
                               // (in SALOMEDS for an example)
   // not enough: set a current directory in naming service is not thread safe
   // if naming service instance is shared among several threads...
-  // ==> allways use absolute path and dot rely on current directory!
+  // ==> always use absolute path and don't rely on current directory!
 
   CORBA::Object_var obj =
     _NS->Resolve(SALOME_ContainerManager::_ContainerManagerNameInNS);
index 7a12648a6251b0e8da67c4e89639660a7eda6f43..2278daa995ee5d5bdab22420d7dac8dc3ce432c9 100644 (file)
@@ -138,7 +138,7 @@ void SALOME_Trace::putMessage(std::ostream& msg)
 {
   //if (!isInitialized) std::cout<<"!!! SALOME_Trace is used without initialising !!!"<<std::endl;
   //write resulting string into Logger CORBA server
-  //concatenate string from passing parameters for transfering into Logger CORBA server
+  //concatenate string from passing parameters for transferring into Logger CORBA server
 
   //std::cerr << "-+- " << msg << " ";
 
index ddda604a465bacadb00a44df7fbf701941e9b5eb..2dc8598574d14c7573b4cf1359df6bb34a556c34 100644 (file)
@@ -372,7 +372,7 @@ Engines_MPIContainer_i::createMPIInstance(std::string genericRegisterName,
       std::string component_registerName =
         _containerName + "/" + instanceName;
 
-      // --- Instanciate required CORBA object
+      // --- Instantiate required CORBA object
 
       PortableServer::ObjectId *id ; //not owner, do not delete (nore use var)
       id = (MPIComponent_factory) ( _orb, _poa, _id, instanceName.c_str(), aGenRegisterName.c_str() ) ;
index cd0bee9da9a55bce9bfd764c4bbdb9422714c8eb..0a221ecda5d292fba1add5a321a0f6823a020de0 100755 (executable)
@@ -19,7 +19,7 @@
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-# debug mode display informations about communication
+# debug mode display information about communication
 if $1 == "--debug" then
   set debug="-debug"
 else
index de8b19f7190e4661cd90b5062b029c60d6f2d914..5362ff8de29cb8f6a53608ee82793fef0b19ac3b 100755 (executable)
@@ -29,7 +29,7 @@ INCLUDE_DIRECTORIES(
   ${PROJECT_BINARY_DIR}/idl
 )
 
-# This local variable defines the list of dependant libraries common to all target in this package.
+# This local variable defines the list of dependent libraries common to all target in this package.
 SET(COMMON_LIBS
   SalomeNS
   OpUtil
index 08ab85a2bd424d2d78909152d8c8cf032791f7d1..a0a82e8c0c7ff3f2b7dfcdc988dce8cb8acef528 100644 (file)
@@ -149,7 +149,7 @@ public:
  //! method to verify path prefix content
   /*!
     \param pathlist ListOfParserPathPrefix arguments
-    \return true if verfication is OK
+    \return true if verification is OK
   */
   virtual bool _verify_path_prefix(ParserPathPrefixes & pathlist);
 
@@ -157,13 +157,13 @@ public:
   char* _general_path;
   char* _personal_path;
 
-  // These variables will contain the informations on the general common catalog
+  // These variables will contain the information on the general common catalog
   ParserComponents    _general_module_list ;
   ParserPathPrefixes  _general_path_list ;
   ParserTypes _typeMap;
   TypeList _typeList;
 
-  // These variables will contain the informations on the personal catalog
+  // These variables will contain the information on the personal catalog
   ParserComponents    _personal_module_list ;
   ParserPathPrefixes  _personal_path_list ; 
 
@@ -265,8 +265,8 @@ SALOME_ModuleCatalogImpl::SALOME_ModuleCatalogImpl(int argc, char** argv, CORBA:
     // Verification of _general_path_list content
     if (!myPrivate->_verify_path_prefix(myPrivate->_general_path_list)) {
       if(MYDEBUG) MESSAGE( "Error while parsing the general path list, "
-                           "differents paths are associated to the same computer," 
-                           "the first one will be choosen");
+                           "different paths are associated to the same computer," 
+                           "the first one will be chosen");
     } else {
       if(MYDEBUG) MESSAGE("General path list OK");
     }
@@ -283,8 +283,8 @@ SALOME_ModuleCatalogImpl::SALOME_ModuleCatalogImpl(int argc, char** argv, CORBA:
       // Verification of _general_path_list content
       if(!myPrivate->_verify_path_prefix(myPrivate->_personal_path_list)){
         if(MYDEBUG) MESSAGE("Error while parsing the personal path list, "
-                            "differents paths are associated to the same computer, "
-                            "the first one will be choosen" );
+                            "different paths are associated to the same computer, "
+                            "the first one will be chosen" );
       }else {
         if(MYDEBUG) MESSAGE("Personal path list OK");
       }
index 98d27c9f3c9ff1b050902ec94ce1529319a240a2..b224370e086d47ab582ea07599c6963f683b98f6 100644 (file)
@@ -139,7 +139,7 @@ void SALOME_NamingService::Register(CORBA::Object_ptr ObjRef,
   Utils_Locker lock (&_myMutex);
 
   // --- _current_context is replaced to the _root_context
-  //     if the Path begins whith '/'
+  //     if the Path begins with '/'
 
   if (Path[0] == '/'){
     _current_context = _root_context;
@@ -334,7 +334,7 @@ CORBA::Object_ptr SALOME_NamingService::Resolve(const char* Path)
   Utils_Locker lock (&_myMutex);
 
   // --- _current_context is replaced to the _root_context
-  //     if the Path begins whith '/'
+  //     if the Path begins with '/'
 
   if (Path[0] == '/')
     {
@@ -403,7 +403,7 @@ CORBA::Object_ptr SALOME_NamingService::Resolve(const char* Path)
 /*! \brief get the CORBA object reference associated to an uncomplete name.
  *
  *  get the CORBA object reference associated to an uncomplete name with a
- *  path. Look for the first occurence of name*.
+ *  path. Look for the first occurrence of name*.
  *  If the NamingService is out, the exception ServiceUnreachable is thrown 
  * \param Path pathname under the form "/path/name" (Absolute reference !)
  *             search the fist reference like "/path(.dir)/name*(.kind)"
@@ -467,7 +467,7 @@ CORBA::Object_ptr SALOME_NamingService::ResolveFirst(const char* Path)
  *  If the NamingService is out, the exception ServiceUnreachable is thrown.
  * \param hostname      name of the machine on which the component is searched.
  * \param containerName name of the container in which the component is
-                        instanciated.
+                        instantiated.
  * \param componentName name of the component we are looking for an existing 
                         instance.
  * \param nbproc        in case of multi processor machine, container name is
@@ -614,7 +614,7 @@ std::string SALOME_NamingService::ContainerName(const Engines::ContainerParamete
  *  SALOME_NamingService. This form gives a suffixed containerName in case of
  *  multi processor machine.
  * \param containerName name of the container in which the component is
-                        instanciated.
+                        instantiated.
  * \param hostname name of the host of the container, without domain names.
  * \return the path under the form /Containers/hostname/containerName
  * \sa ContainerName(const Engines::MachineParameters& params)
@@ -657,12 +657,12 @@ std::string SALOME_NamingService::BuildContainerNameForNS(const Engines::Contain
 /*! \brief search a name in current directory.
  *
  *  Search a name in the current directory. after call, the current directory
- *  is changed to the directory containing the last occurence of name found.
- *  If no occurence found (see return value), current directory remains
+ *  is changed to the directory containing the last occurrence of name found.
+ *  If no occurrence found (see return value), current directory remains
  *  unchanged.
  *
  * \param  name the name to search.
- * \return number of occurences found.
+ * \return number of occurrences found.
  * \sa Change_Directory(const char* Path)
  */ 
 // ============================================================================
@@ -702,8 +702,8 @@ throw(ServiceUnreachable)
  *               path, to current context. Prefer absolute pathname, relative
  *               pathname are not safe, when SALOME_NamingService object is
  *               shared or use in multithreaded context.   
- *  \return true if successfull
- *          (creation not strictly garanteed if true, because Register may
+ *  \return true if successful
+ *          (creation not strictly guaranteed if true, because Register may
  *           catch some specific unlikely exception without throw anything
  *           --- to be corrected ---)
  *  \sa RegisterCORBA::Object_ptr ObjRef, const char* Path)
@@ -773,7 +773,7 @@ bool SALOME_NamingService::Change_Directory(const char* Path) throw(ServiceUnrea
   CosNaming::NamingContext_var current_context = _current_context;
   bool changeOK = false;
 
-  // --- replace _current_context with _root_context if Path begins whith '/'
+  // --- replace _current_context with _root_context if Path begins with '/'
 
   if (path[0] == '/')
     current_context = _root_context;
@@ -1464,7 +1464,7 @@ void SALOME_NamingService::_initialize_root_context()
  *  \param context_name CosNaming structure to put the path.
  *  \param splitPath    a vector of string with subdirectories and final
  *                      object, if any.
- *  \param onlyDir      if true, final object (if any) is ommited
+ *  \param onlyDir      if true, final object (if any) is omitted
  *                      in context_name.
  *                      if false, final object (if any) is included in
  *                      context_name.
@@ -1534,12 +1534,12 @@ SALOME_NamingService::_createContextNameDir(std::string path,
 /*! \brief search a name in current directory.
  *
  *  Search a name in the current directory. after call, the current directory
- *  is changed to the directory containing the last occurence of name found.
- *  If no occurence found (see return value), current directory remains
+ *  is changed to the directory containing the last occurrence of name found.
+ *  If no occurrence found (see return value), current directory remains
  *  unchanged. The call is recursive.
  *
  * \param  name the name to search.
- * \param  occurence_number number of occurence already found (incremented)
+ * \param  occurence_number number of occurrence already found (incremented)
  */ 
 // ============================================================================
 
@@ -1583,11 +1583,11 @@ void SALOME_NamingService::_Find(const char* name,
               
               if (!strcmp( bindingName[0].id, name))
                 {
-                  //MESSAGE("One occurence was found");
+                  //MESSAGE("One occurrence was found");
                   occurence_number++;
                   
                   // --- We keep in memory the directory where
-                  //     one occurence was found
+                  //     one occurrence was found
                   
                   found_context = _current_context ;
                 }
@@ -1596,7 +1596,7 @@ void SALOME_NamingService::_Find(const char* name,
       
       binding_iterator->destroy();
     }
-  // --- We go to the last directory where an occurence was found
+  // --- We go to the last directory where an occurrence was found
 
   _current_context = found_context;
 
@@ -1685,7 +1685,7 @@ _current_directory(std::vector<std::string>& splitPath,
       binding_iterator->destroy();
     }
 
-  // --- return to the last directory where an occurence was found
+  // --- return to the last directory where an occurrence was found
 
   _current_context = ref_context ;
 }
index 743463cd130263c851a2821ac1cbf2935525a845..9117dd2156e0968e8a7cddfa55ff9467da062c0c 100755 (executable)
@@ -34,7 +34,7 @@ INCLUDE_DIRECTORIES(
   ${CMAKE_CURRENT_SOURCE_DIR}/../../Basics/Test
 )
 
-# This local variable defines the list of dependant libraries common to all target in this package.
+# This local variable defines the list of dependent libraries common to all target in this package.
 SET(COMMON_LIBS
     ${CPPUNIT_LIBRARIES}
     SalomeNS
index e0f9282508148a484d1401007f72446986b1b094..8c76334e50bc2b578d8af71fff51a753c35f4b50 100755 (executable)
@@ -36,7 +36,7 @@ INCLUDE_DIRECTORIES(
   ${PROJECT_SOURCE_DIR}/src/SALOMETraceCollector
 )
 
-# This local variable defines the list of dependant libraries common to all target in this package.
+# This local variable defines the list of dependent libraries common to all target in this package.
 SET(COMMON_LIBS
   SalomeContainer
   SalomeNS
index 25267d785900ccbea38f0679002e48456c3ffc60..9387dbaac16fc363e711a57bb86b21d31a1374a6 100644 (file)
@@ -350,7 +350,7 @@ Container_proxy_impl_final::create_component_instance_env(const char* componentN
     string instanceName = aCompName + "_inst_" + aNumI ;
     string component_registerName = _containerName + "/" + instanceName;
 
-    // --- Instanciate required CORBA object
+    // --- Instantiate required CORBA object
     Container_proxy_impl_final::proxy_object * proxy = new Container_proxy_impl_final::proxy_object();
     
     proxy->proxy_id = (component_proxy_factory) (_orb, 
@@ -386,7 +386,7 @@ Container_proxy_impl_final::create_component_instance_env(const char* componentN
   }
   catch (...)
   {
-    INFOS( "Exception catched in Proxy creation" );
+    INFOS( "Exception caught in Proxy creation" );
     return Engines::EngineComponent::_nil();
   }
 
index 7a593f6654ee1c554958231df8c7eed34e4fa9f1..e4f1c1254cdc6b09863fb622a4d301742e9e269b 100644 (file)
@@ -66,7 +66,7 @@ extern "C" {void SigIntHandler( int ) ; }
 
 //=============================================================================
 /*! 
- *  Construtor
+ *  Constructor
  */
 //=============================================================================
 
@@ -282,7 +282,7 @@ void Engines_Parallel_Container_i::Shutdown()
  *  \param componentName like COMPONENT
  *                          try to make a Python import of COMPONENT,
  *                          then a lib open of libCOMPONENTEngine.so
- *  \return true if dlopen successfull or already done, false otherwise
+ *  \return true if dlopen successful or already done, false otherwise
  */
 //=============================================================================
 
@@ -635,7 +635,7 @@ Engines_Parallel_Container_i::createFileRef(const char* origFileName)
 
   if (origName[0] != '/')
   {
-    INFOS("path of file to copy must be an absolute path begining with '/'");
+    INFOS("path of file to copy must be an absolute path beginning with '/'");
     return Engines::fileRef::_nil();
   }
 
@@ -757,7 +757,7 @@ Engines_Parallel_Container_i::find_or_create_instance(std::string genericRegiste
   }
   catch (...)
   {
-    INFOS( "Container_i::load_impl catched" ) ;
+    INFOS( "Container_i::load_impl caught" ) ;
   }
   return iobject._retn();
 }
@@ -891,7 +891,7 @@ Engines_Parallel_Container_i::createCPPInstance(std::string genericRegisterName,
     std::string component_registerName =
       _containerName + "/" + instanceName;
 
-    // --- Instanciate required CORBA object
+    // --- Instantiate required CORBA object
 
     PortableServer::ObjectId *id; //not owner, do not delete (nore use var)
     id = (Component_factory) ( _orb, _poa, _id, instanceName.c_str(),
@@ -926,7 +926,7 @@ Engines_Parallel_Container_i::createCPPInstance(std::string genericRegisterName,
   }
   catch (...)
   {
-    INFOS( "Container_i::createInstance exception catched" );
+    INFOS( "Container_i::createInstance exception caught" );
   }
   return iobject._retn();
 }
@@ -998,7 +998,7 @@ Engines_Parallel_Container_i::create_paco_component_node_instance(const char* co
     std::string instanceName = aCompName + "_inst_" + aNumI + "_work_node_" + aNumI2;
     std::string component_registerName = _containerName + "/" + instanceName;
 
-    // --- Instanciate work node
+    // --- Instantiate work node
     PortableServer::ObjectId *id ; //not owner, do not delete (nore use var)
     id = (Component_factory) (_orb, proxy_ior, getMyRank(), _poa, _id, instanceName.c_str(), componentName);
     CORBA::string_free(proxy_ior);
@@ -1021,10 +1021,10 @@ Engines_Parallel_Container_i::create_paco_component_node_instance(const char* co
   }
   catch (...)
   {
-    INFOS("Container_i::create_paco_component_node_instance exception catched");
+    INFOS("Container_i::create_paco_component_node_instance exception caught");
     SALOME::ExceptionStruct es;
     es.type = SALOME::INTERNAL_ERROR;
-    es.text = "Container_i::create_paco_component_node_instance exception catched";
+    es.text = "Container_i::create_paco_component_node_instance exception caught";
     throw SALOME::SALOME_Exception(es);
   }
 }
index 73aaa078e5ed8d6ba6e5e6a93c974051d891e890..458f45a2d67dc3dcc60e9a857c71eaf52f931445 100755 (executable)
@@ -30,7 +30,7 @@ INCLUDE_DIRECTORIES(
 )
 
 
-# This local variable defines the list of dependant libraries common to all target in this package.
+# This local variable defines the list of dependent libraries common to all target in this package.
 SET(COMMON_LIBS
   SalomeNS
   OpUtil
index 03a0bf6847d35356505e60685af12c5eafc149d3..55cc8a3c755bbe386600eccacc7802bcb92f2b67 100644 (file)
@@ -319,7 +319,7 @@ ResourcesManager_cpp::GetFittingResources(const resourceParams& params) throw(Re
 
 //=============================================================================
 /*!
- *  add an entry in the ressources catalog xml file.
+ *  add an entry in the resources catalog xml file.
  */ 
 //=============================================================================
 
index 1f140f49cab04df7ceb7281a2a0a5f23a72e11e1..5e8c54d664fd388bb3aac7c4bd9a29863a5a75e7 100644 (file)
@@ -106,11 +106,11 @@ class RESOURCESMANAGER_EXPORT ResourcesManager_cpp
      */
     void AddDefaultResourceInCatalog();
 
-    //! will contain the path to the ressources catalog
+    //! will contain the path to the resources catalog
     std::list<std::string> _path_resources;
     std::list<std::string>::iterator _path_resources_it;
 
-    //! will contain the informations on the data type catalog(after parsing)
+    //! will contain the information on the data type catalog(after parsing)
     MapOfParserResourcesType _resourcesList;
 
     //! a map that contains all the available load rate managers (the key is the name)
index 8b09d8bddb515e489e9d9f2044d59e0bf5fbd969..f9686e195976e9fbdb427579b18d1cd367372cfe 100644 (file)
@@ -139,7 +139,7 @@ void SALOME_ResourcesManager::Shutdown()
 }
 
 /*!
- * Return list of resources available (regarding containt of CatalogResources.xml). And for each resource the number of proc available of it.
+ * Return list of resources available (regarding content of CatalogResources.xml). And for each resource the number of proc available of it.
  */
 void SALOME_ResourcesManager::ListAllAvailableResources(Engines::ResourceList_out machines, Engines::IntegerList_out nbProcsOfMachines)
 {
@@ -184,7 +184,7 @@ void SALOME_ResourcesManager::ListAllAvailableResources(Engines::ResourceList_ou
 Engines::ResourceList *
 SALOME_ResourcesManager::GetFittingResources(const Engines::ResourceParameters& params)
 {
-  MESSAGE("ResourcesManager::GetFittingResources");
+  //MESSAGE("ResourcesManager::GetFittingResources");
   Engines::ResourceList_var ret;
 
   // CORBA -> C++
@@ -419,7 +419,7 @@ SALOME_ResourcesManager::getMachineFile(const char * resource_name,
         INFOS("[getMachineFile] Error resource_name MPI implementation was defined for " << resource_name);
       }
       else
-        INFOS("[getMachineFile] Error resource_name MPI implementation not currenly handled for " << resource_name);
+        INFOS("[getMachineFile] Error resource_name MPI implementation not currently handled for " << resource_name);
     }
     else
       INFOS("[getMachineFile] Error resource_name not found in resourcesList -> " << resource_name);
index 11655ed3d4eb66554b5c8d2b23e12f15e470c5e8..d552235ee9a735c9be11cb5ef9f330e4c9a0be6f 100644 (file)
@@ -45,7 +45,7 @@ M src/SALOMEDS/Makefile.in
 M src/SALOMEDS/SALOMEDS_SObject_i.cxx
 M src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx
 
-# detailled modifications:
+# detailed modifications:
 
 - in new files,
 change ExternalFileDef in FileType everywhere
index a4e1f2d0a300f3884b18f0bfda7cafab103293f3..23d234ffe37242d440477fa540cf48b1573a4831 100644 (file)
@@ -32,7 +32,7 @@
   Description : This class is intended for storing different object attributes that
                 have only two states (0 and 1).
                 
-                Avalable attributes:
+                Available attributes:
                 
                 IS_VISIBLE - is equal to 1 if object is visible in 3D view (0 - overwise).
                              This attribute is valid for active view only.
index 2b708c3bcbd705fb95b38bfb37111ffafebe5798..d9d7ed188a2c9eb8013108a5cc1c160cfae327b4 100644 (file)
@@ -41,7 +41,7 @@
   Description : This class is intended for storing different object attributes that
                 have only two states (0 and 1).
 
-                Avalable attributes:
+                Available attributes:
 
                 IS_VISIBLE - is equal to 1 if object is visible in 3D view (0 - overwise).
                              This attribute is valid for active view only.
index ea539097ae1d8bf44ed8cb8c32fca6d3239fb6bc..fcc048caeb9fa723207b1c4aa4bcfa5efeaddd0c 100644 (file)
@@ -426,7 +426,7 @@ bool SALOMEDS_AttributeParameter::HasFather()
 //=======================================================================
 /*!
  * Function : IsRoot
- * Purpose  : Returns True is the attribute is highest in an hierachy
+ * Purpose  : Returns True is the attribute is highest in an hierarchy
  */
 //=======================================================================
 bool SALOMEDS_AttributeParameter::IsRoot()
index 7756f15abfaa5783afd41ab20b0dbe6c05604a26..40eca2d82045177638d3f2b04349be405915f552 100644 (file)
@@ -319,7 +319,7 @@ CORBA::Boolean SALOMEDS_AttributeParameter_i::HasFather()
 //=======================================================================
 /*!
  * Function : IsRoot
- * Purpose  : Returns True is the attribute is highest in an hierachy
+ * Purpose  : Returns True is the attribute is highest in an hierarchy
  */
 //=======================================================================
 CORBA::Boolean SALOMEDS_AttributeParameter_i::IsRoot()
index 6113ccc98c9e78c8fd6a75ba0c0c218bc4198b50..c5eefdfaaf099b926e824989bfb218c8baff2228 100644 (file)
@@ -138,7 +138,7 @@ SALOMEDS::Study_ptr SALOMEDS_StudyManager_i::NewStudy(const char* study_name)
   SALOMEDS::Study_var Study = Study_servant->_this();
 
   // Register study in the naming service
-  // Path to acces the study
+  // Path to access the study
   if(!_name_service->Change_Directory("/Study"))
       MESSAGE( "Unable to access the study directory" )
   else
@@ -197,7 +197,7 @@ SALOMEDS::Study_ptr  SALOMEDS_StudyManager_i::Open(const char* aUrl)
   _mapOfPOA[Study->StudyId()] = _poa;
 
   // Register study in the naming service
-  // Path to acces the study
+  // Path to access the study
   if(!_name_service->Change_Directory("/Study")) MESSAGE( "Unable to access the study directory" )
   else _name_service->Register(Study, aStudyImpl->Name().c_str());
 
index 67615795fb21d0d60915dba8181892d6c0523cd0..679a7feb2ace6b93c4af815a17e7cb23eea6bd11 100755 (executable)
@@ -43,7 +43,7 @@ INCLUDE_DIRECTORIES(
   ${PROJECT_BINARY_DIR}/idl
 )
 
-# This local variable defines the list of dependant libraries common to all target in this package.
+# This local variable defines the list of dependent libraries common to all target in this package.
 SET(COMMON_LIBS
  ${CPPUNIT_LIBRARIES}
  SALOMEBasics
index b5454725114b8bcb3728e3ddf56191eea20d1be7..f2da850aa8f4c4d016840bd77549c323faf7a4b2 100755 (executable)
@@ -60,7 +60,7 @@ void SALOMEDSTest::testAttributeParameter()
   //Check the attribute creation
   CPPUNIT_ASSERT(_attr);
 
-  //Try to retreive a value with invalid ID
+  //Try to retrieve a value with invalid ID
   bool isRaised = false;
   CPPUNIT_ASSERT(!_attr->IsSet("invalid ID", PT_INTEGER));
   try {
index 62f7145150c938cdfd8c0cb776b9d2602006c5a3..273edef440dbd13e2726fd7229074407ac3eb508 100755 (executable)
@@ -96,7 +96,7 @@ void SALOMEDSTest::testAttributeSequenceOfInteger()
 
   CPPUNIT_ASSERT(_attr->Value(4) == 5);
 
-  //Check processing of invalid indicies
+  //Check processing of invalid indices
   bool isRaised = false;
   try {
     _attr->Value(-1);
index 2772a71bdba051315ec084f3738adcced4b43628..48b988ad6d702931a973271f506b17ff7bd0c851 100755 (executable)
@@ -90,7 +90,7 @@ void SALOMEDSTest::testAttributeSequenceOfReal()
 
   CPPUNIT_ASSERT(_attr->Value(4) == 5.5);
 
-  //Check processing of invalid indicies
+  //Check processing of invalid indices
   bool isRaised = false;
   try {
     _attr->Value(-1);
index 5038a832ada4c4434ee093d5539965198577eb12..a1e643b08447eaf7426967c03a501579d09d5ebf 100755 (executable)
@@ -31,7 +31,7 @@ INCLUDE_DIRECTORIES(
 
 # This local variable defines the list of FLAGS common to all target in this package.
 ADD_DEFINITIONS(${BOOST_DEFINITIONS})
-# This local variable defines the list of dependant libraries common to all target in this package.  
+# This local variable defines the list of dependent libraries common to all target in this package.  
 SET(COMMON_LIBS
   SALOMEBasics
   SalomeHDFPersist
index 04d410953e9dd53f7471685de2d238fda4319f45..31b608d39ad9f1625d5c8c85ad4e1b91aaaca66d 100644 (file)
@@ -424,7 +424,7 @@ bool SALOMEDSImpl_AttributeParameter::RemoveID(const std::string& theID, const P
 //=======================================================================
 SALOMEDSImpl_AttributeParameter* SALOMEDSImpl_AttributeParameter::GetFather()
 {
-  SALOMEDSImpl_AttributeParameter* aFather;
+  SALOMEDSImpl_AttributeParameter* aFather = 0;
   DF_Label L = Label();
   if(L.IsRoot()) return aFather;
 
@@ -457,7 +457,7 @@ bool SALOMEDSImpl_AttributeParameter::HasFather()
 //=======================================================================
 /*!
  * Function : IsRoot
- * Purpose  : Returns True is the attribute is highest in an hierachy
+ * Purpose  : Returns True is the attribute is highest in an hierarchy
  */
 //=======================================================================
 bool SALOMEDSImpl_AttributeParameter::IsRoot()
@@ -643,7 +643,7 @@ std::string SALOMEDSImpl_AttributeParameter::Save()
 
   buffer << _bools.size() << " ";
   for(std::map<std::string,bool>::const_iterator p = _bools.begin(); p != _bools.end(); p++) {
-     buffer << convertString(p->first) << " " << p->second << " ";
+    buffer << convertString(p->first) << " " << p->second << " ";
   }
 
   buffer << _strings.size() << " ";
@@ -654,9 +654,9 @@ std::string SALOMEDSImpl_AttributeParameter::Save()
   buffer << _realarrays.size() << " ";
   for(std::map< std::string,std::vector<double> >::const_iterator p = _realarrays.begin(); p != _realarrays.end(); p++) {
     std::vector<double> v(p->second);
-    sprintf(tmpBuffer, " %s %d ", convertString(p->first).c_str(), v.size());
+    sprintf(tmpBuffer, " %s %d ", convertString(p->first).c_str(), (int)v.size());
     buffer << tmpBuffer;
-    for(int i = 0; i<v.size(); i++) {
+    for(size_t i = 0; i<v.size(); i++) {
       sprintf(tmpBuffer, " %.64e ", v[i]);
       buffer << tmpBuffer;
     }
@@ -665,9 +665,9 @@ std::string SALOMEDSImpl_AttributeParameter::Save()
   buffer << _intarrays.size() << " ";
   for(std::map< std::string,std::vector<int> >::const_iterator p = _intarrays.begin(); p != _intarrays.end(); p++) {
     std::vector<int> v(p->second);
-    sprintf(tmpBuffer, " %s %d ", convertString(p->first).c_str(), v.size());
+    sprintf(tmpBuffer, " %s %d ", convertString(p->first).c_str(), (int)v.size());
     buffer << tmpBuffer;
-    for(int i = 0; i<v.size(); i++) {
+    for(size_t i = 0; i<v.size(); i++) {
       sprintf(tmpBuffer, " %d ", v[i]);
       buffer << tmpBuffer;
     }
@@ -676,18 +676,18 @@ std::string SALOMEDSImpl_AttributeParameter::Save()
   buffer << _strarrays.size() << " ";
   for(std::map< std::string,std::vector<std::string> >::const_iterator p = _strarrays.begin(); p != _strarrays.end(); p++) {
     std::vector<std::string> v(p->second);
-    sprintf(tmpBuffer, " %s %d ", convertString(p->first).c_str(), v.size());
+    sprintf(tmpBuffer, " %s %d ", convertString(p->first).c_str(), (int)v.size());
     buffer << tmpBuffer;
-    for(int i = 0; i<v.size(); i++) {
+    for(size_t i = 0; i<v.size(); i++) {
       buffer << " " << convertString(v[i]) << " ";
     }
   }
 
-  delete tmpBuffer;
+  delete [] tmpBuffer;
 
   std::string AS = buffer.str();
 
-  return AS; 
+  return AS;
 }
 
 //=======================================================================
@@ -696,8 +696,8 @@ std::string SALOMEDSImpl_AttributeParameter::Save()
  * Purpose  : Restores the attribute from the string
  */
 //=======================================================================
-void SALOMEDSImpl_AttributeParameter::Load(const std::string& theValue) 
-{ 
+void SALOMEDSImpl_AttributeParameter::Load(const std::string& theValue)
+{
   Backup();
 
   _ints.clear();
index 6b9c59d089fdc37de3d5fcbbd608afff3cf0a3a5..d33b0e1459089a80f269d25356e0c368afe2cd7c 100644 (file)
@@ -288,7 +288,7 @@ std::string SALOMEDSImpl_AttributeStudyProperties::Save()
     aProperty[a++] = 1;
   }
 
-  //Write delimeter of the section to define end of the modifications section
+  //Write delimiter of the section to define end of the modifications section
   aProperty[a++] = 30;
 
   //Write units if need
@@ -297,7 +297,7 @@ std::string SALOMEDSImpl_AttributeStudyProperties::Save()
     a = strlen(aProperty);
   }
 
-  aProperty[a++] = 1; //delimeter of the units and comments
+  aProperty[a++] = 1; //delimiter of the units and comments
 
   //Write comments if need
   if(comment.size() > 0) {
@@ -305,7 +305,7 @@ std::string SALOMEDSImpl_AttributeStudyProperties::Save()
     a = strlen(aProperty);
   }
   
-  aProperty[a++] = 30; //delimeter of the component versions
+  aProperty[a++] = 30; //delimiter of the component versions
 
   std::map<std::string, std::string>::const_iterator versionsIt;
   for ( versionsIt = versions.begin(); versionsIt != versions.end(); ++versionsIt ) {
@@ -455,7 +455,7 @@ void SALOMEDSImpl_AttributeStudyProperties::Load(const std::string& value)
   
   //Case when study contains units and comment properties
   if( anIndex < value.size() ) {
-    anIndex++; //skip the delimeter of the sections: char(30)
+    anIndex++; //skip the delimiter of the sections: char(30)
     int unitsSize;
     for(unitsSize = 0; aCopy[anIndex+unitsSize] != 1; unitsSize++);
 
index 050e3ab72c3ec88779114ca607319856bca7f6ba..f9542954ce8ffafcee1a7b01dd30a0bcdbe69790 100644 (file)
@@ -71,7 +71,7 @@ SALOMEDSImpl_SObject::SALOMEDSImpl_SObject(const DF_Label& theLabel)
 }
 
 //============================================================================
-/*! Function : Desctructor
+/*! Function : Destructor
  *  Purpose  : 
  */
 //============================================================================    
index d05604ea5428be950e64cac484388d40874defd3..9e3e1e444646de73758afe760881be84fb69837a 100644 (file)
@@ -507,7 +507,7 @@ bool SALOMEDSImpl_StudyManager::Impl_SaveProperties(SALOMEDSImpl_Study* aStudy,
   //...........................,
   //component=versions, char(1), char(0)
 
-  //string length: 1 byte = locked flag, 1 byte = modified flag, (12 + name length + 1) for each name and date, 1 byte (char(30) section delimeter)
+  //string length: 1 byte = locked flag, 1 byte = modified flag, (12 + name length + 1) for each name and date, 1 byte (char(30) section delimiter)
   // unit length + 1, comment length, "zero" byte
   
   char* aProperty = new char[3 + aLength + 12 * aNames.size() + 1 + unitsSize + 1 + commentSize + 1 + aLength1 ];
@@ -528,7 +528,7 @@ bool SALOMEDSImpl_StudyManager::Impl_SaveProperties(SALOMEDSImpl_Study* aStudy,
     aProperty[a++] = 1;
   }
 
-  //Write delimeter of the section to define end of the modifications section
+  //Write delimiter of the section to define end of the modifications section
   aProperty[a++] = 30;
 
   //Write units if need
@@ -545,7 +545,7 @@ bool SALOMEDSImpl_StudyManager::Impl_SaveProperties(SALOMEDSImpl_Study* aStudy,
     a = strlen(aProperty);
   }
   
-  aProperty[a++] = 30; //delimeter of the component versions
+  aProperty[a++] = 30; //delimiter of the component versions
 
   std::map<std::string, std::string>::const_iterator versionsIt;
   for ( versionsIt = versions.begin(); versionsIt != versions.end(); ++versionsIt ) {
@@ -585,11 +585,11 @@ bool SALOMEDSImpl_StudyManager::Impl_SaveAs(const std::string& aStudyUrl,
   // Set "C" locale temporarily to avoid possible localization problems
   Kernel_Utils::Localizer loc;
 
-  // HDF File will be composed of differents part :
+  // HDF File will be composed of different part :
   // * For each ComponentDataType, all data created by the component
-  //   Informations in data group hdf_group_datacomponent
+  //   Information in data group hdf_group_datacomponent
   // * Study Structure -> Exactly what is contained in Document
-  //   Informations in data group hdf_group_study_structure
+  //   Information in data group hdf_group_study_structure
 
   _errorCode = "";
 
@@ -666,7 +666,7 @@ bool SALOMEDSImpl_StudyManager::Impl_SaveAs(const std::string& aStudyUrl,
       aStudy->URL(aStudyUrl);
 
       // To change for Save
-      // Do not have to do a new file but just a Open??? Rewrite all informations after erasing evrything??
+      // Do not have to do a new file but just a Open??? Rewrite all information after erasing everything??
       hdf_file = new HDFfile((char*)aUrl.c_str());
       hdf_file->CreateOnDisk();
 
@@ -733,7 +733,7 @@ bool SALOMEDSImpl_StudyManager::Impl_SaveAs(const std::string& aStudyUrl,
                   hdf_dataset->WriteOnDisk((void*)(theASCII?"A":"B")); // save: ASCII or BINARY
                   hdf_dataset->CloseOnDisk();
                   hdf_dataset=0; //will be deleted by hdf_sco_AuxFiles destructor
-                  // Creation of the persistance reference  attribute
+                  // Creation of the persistence reference  attribute
                   Translate_IOR_to_persistentID (sco, Engine, theMultiFile, theASCII);
                 }
             }
@@ -955,7 +955,7 @@ bool SALOMEDSImpl_StudyManager::Impl_SaveObject(const SALOMEDSImpl_SObject& SC,
 {
   _errorCode = "";
 
-  // Write in group hdf_group_datatype all informations of SObject SC
+  // Write in group hdf_group_datatype all information of SObject SC
   // Iterative function to parse all SObjects under a SComponent
 
   HDFgroup *hdf_group_sobject = 0;
@@ -1405,7 +1405,7 @@ static void ReadAttributes(SALOMEDSImpl_Study* theStudy,
   if (!strcmp(hdf_dataset->GetName(),"COMPONENTDATATYPE")) {
     anAttr = theStudy->NewBuilder()->FindOrCreateAttribute(aSO, "AttributeComment");
   } else if (!strcmp(hdf_dataset->GetName(),"AttributeReference") ||
-             !strcmp(hdf_dataset->GetName(),"Reference")) { // Old format maintainance
+             !strcmp(hdf_dataset->GetName(),"Reference")) { // Old format maintenance
     theStudy->NewBuilder()->Addreference(aSO, theStudy->CreateObjectID(current_string));
     delete [] (current_string);
     hdf_dataset->CloseOnDisk();
index 24a4b7cc5add0b5c1dc01969e604b2052ed03032..18b35d2ab258713556bd58a652b95fdc31395098 100755 (executable)
@@ -39,7 +39,7 @@ INCLUDE_DIRECTORIES(
   ${PROJECT_BINARY_DIR}/idl
 )
 
-# This local variable defines the list of dependant libraries common to all target in this package.
+# This local variable defines the list of dependent libraries common to all target in this package.
 SET(COMMON_LIBS
   ${CPPUNIT_LIBRARIES}
   SALOMEBasics
index 64008945736c9f9fea99675d535160adf9cce70a..026dcaf016473b04034319b154ecfa7a8b3d537f 100644 (file)
@@ -102,7 +102,7 @@ int main (int argc, char * argv[])
   
   aTDFAttr = aBuilder->FindOrCreateAttribute(aSubSO, "AttributeUserID");
   if(aTDFAttr) {
-    std::cout << "Attribute UserID was created succesfully : id = " << dynamic_cast<SALOMEDSImpl_AttributeUserID*>(aTDFAttr)->Value() << std::endl;
+    std::cout << "Attribute UserID was created successfully : id = " << dynamic_cast<SALOMEDSImpl_AttributeUserID*>(aTDFAttr)->Value() << std::endl;
   }
   else std::cout << "Can't create AttributeUserID"   << std::endl;
   
@@ -113,7 +113,7 @@ int main (int argc, char * argv[])
   std::string id2 = "0e1c36e6-379b-4d90-ab3b-18a14310e648";
   aTDFAttr = aBuilder->FindOrCreateAttribute(aSubSO, "AttributeUserID"+id2);
   if(aTDFAttr) {
-    std::cout << "Attribute UserID was created succesfully : id = " << dynamic_cast<SALOMEDSImpl_AttributeUserID*>(aTDFAttr)->Value() << std::endl;
+    std::cout << "Attribute UserID was created successfully : id = " << dynamic_cast<SALOMEDSImpl_AttributeUserID*>(aTDFAttr)->Value() << std::endl;
   }
   else std::cout << "Can't create AttributeUserID"   << std::endl;
 
index 20037de4fc9894b25899fa61eba75aa709643904..54f1463fb2fe528e13c1e2967aaee869379001dd 100644 (file)
@@ -41,7 +41,7 @@ std::string FileTraceCollector::_fileName = "";
 /*!
  *  This class is for use without CORBA, inside or outside SALOME.
  *  SALOME uses SALOMETraceCollector, to allow trace collection via CORBA.
- *  Type of trace (and corresponding class) is choosen in LocalTraceBufferPool.
+ *  Type of trace (and corresponding class) is chosen in LocalTraceBufferPool.
  *
  *  Guarantees a unique object instance of the class (singleton thread safe)
  *  a separate thread for loop to print traces is launched.
@@ -78,7 +78,7 @@ BaseTraceCollector* FileTraceCollector::instance(const char *fileName)
 // ============================================================================
 /*!
  *  In a separate thread, loop to print traces.
- *  Mutex garantees intialisation on instance method is done and only one run
+ *  Mutex guarantees intialisation on instance method is done and only one run
  *  allowed (double check ...)
  *  Loop until there is no more buffer to print,
  *  and no ask for end from destructor.
index b6199f6df5d0294c4a5fc30a3220e403ec3249fc..45f7389482b3ad19bbdbf4357a781db7e0600796 100644 (file)
@@ -36,7 +36,7 @@
 /*!
  *  This class is for use without CORBA, inside or outside SALOME.
  *  SALOME uses SALOMETraceCollector, to allow trace collection via CORBA.
- *  Type of trace (and corresponding class) is choosen in LocalTraceBufferPool.
+ *  Type of trace (and corresponding class) is chosen in LocalTraceBufferPool.
  *
  *  Guarantees a unique object instance of the class (singleton thread safe)
  *  a separate thread for loop to print traces is launched.
@@ -68,7 +68,7 @@ BaseTraceCollector* LocalTraceCollector::instance()
 // ============================================================================
 /*!
  *  In a separate thread, loop to print traces.
- *  Mutex garantees intialisation on instance method is done and only one run
+ *  Mutex guarantees intialisation on instance method is done and only one run
  *  allowed (double check ...)
  *  Loop until there is no more buffer to print,
  *  and no ask for end from destructor.
index 4d70e3f5264e44dcfec0a1f6c986ddbf711c6e57..dbfa0d34b6626073ad94eff44caa951273e1d3d8 100644 (file)
@@ -26,7 +26,7 @@
 //  Module : SALOME
 //  $Header$
 //
-/* ---  Definition macros file to print informations if _DEBUG_ is defined --- */
+/* ---  Definition macros file to print information if _DEBUG_ is defined --- */
 
 #ifndef UTILITIES_H
 #define UTILITIES_H
@@ -47,7 +47,7 @@
  * This buffer is read later by a specific thread in charge of trace print.
  * Order of trace entries is globally respected. Nevertheless, if there are
  * several threads waiting for a free buffer to trace, the order of
- * thread waken up is not garanteed (no fifo or priority rules in Linux Kernel)
+ * thread waken up is not guaranteed (no fifo or priority rules in Linux Kernel)
  */
 
 #define MESS_INIT(deb) std::ostringstream os; os<<deb
index e56aba80fe8d5b2c45b9bf0fe95379e345b9fb2d..cdbc5a75bd5c62c7b2bafc93d2e542d4da9a9dc7 100644 (file)
@@ -34,11 +34,19 @@ namespace SALOMESDS
     CORBA::Object_var activate()
     {
       PortableServer::POA_var poa(getPOA());
-      PortableServer::ObjectId_var id(poa->activate_object(this));
+      PortableServer::ObjectId_var id;
+      try
+      {
+          id=poa->activate_object(this);
+      }
+      catch(PortableServer::POA::ServantAlreadyActive& e)
+      {
+          id=poa->servant_to_id(this);
+      }
       CORBA::Object_var ret(poa->id_to_reference(id));
       return ret;
     }
-    
+
     void enforcedRelease()
     {
       PortableServer::POA_var poa(getPOA());
@@ -112,6 +120,7 @@ namespace SALOMESDS
     const T& operator*() const { return *_ptr; }
     operator T *() { return _ptr; }
     operator const T *() const { return _ptr; }
+    bool isNull() const { return _ptr==NULL; }
   private:
     void destroyPtr()
     {
index ac4772586dec68428acb06ac9583db8891904918..a8e879a497d62c710483dcb1d0f5c0b5f61e32c4 100644 (file)
@@ -52,6 +52,36 @@ void DataScopeKiller::shutdown()
   _orb->shutdown(0);
 }
 
+RequestSwitcher::RequestSwitcher(CORBA::ORB_ptr orb)
+{
+  CORBA::Object_var obj(orb->resolve_initial_references("RootPOA"));
+  PortableServer::POA_var poa(PortableServer::POA::_narrow(obj));
+  _poa_manager_under_control=poa->the_POAManager();
+  //
+  CORBA::PolicyList policies;
+  policies.length(1);
+  PortableServer::ThreadPolicy_var threadPol(poa->create_thread_policy(PortableServer::SINGLE_THREAD_MODEL));
+  policies[0]=PortableServer::ThreadPolicy::_duplicate(threadPol);
+  // all is in PortableServer::POAManager::_nil. By specifying _nil cf Advanced CORBA Programming with C++ p 506
+  // a new POA manager is created. This POA manager is independent from POA manager of the son ones.
+  _poa_for_request_control=poa->create_POA("4RqstSwitcher",PortableServer::POAManager::_nil(),policies);
+  threadPol->destroy();
+  PortableServer::POAManager_var mgr(_poa_for_request_control->the_POAManager());
+  mgr->activate();
+  //obj=orb->resolve_initial_references ("POACurrent");// agy : usage of POACurrent breaks the hold_requests. Why ?
+  //PortableServer::Current_var current(PortableServer::Current::_narrow(obj));
+}
+
+void RequestSwitcher::holdRequests()
+{
+  _poa_manager_under_control->hold_requests(true);
+}
+
+void RequestSwitcher::activeRequests()
+{
+  _poa_manager_under_control->activate();
+}
+
 DataScopeServerBase::DataScopeServerBase(CORBA::ORB_ptr orb, SALOME::DataScopeKiller_var killer, const std::string& scopeName):_globals(0),_locals(0),_pickler(0),_orb(CORBA::ORB::_duplicate(orb)),_name(scopeName),_killer(killer)
 {
 }
@@ -226,6 +256,34 @@ SALOME::SeqOfByteVec *DataScopeServerBase::getAllKeysOfVarWithTypeDict(const cha
   return ret;
 }
 
+SALOME::RequestSwitcher_ptr DataScopeServerBase::getRequestSwitcher()
+{
+  if(_rs.isNull())
+    {
+      _rs=new RequestSwitcher(_orb);
+    }
+  CORBA::Object_var obj(_rs->activate());
+  return SALOME::RequestSwitcher::_narrow(obj);
+}
+
+void DataScopeServerBase::takeANap(CORBA::Double napDurationInSec)
+{
+  if(napDurationInSec<0.)
+    throw Exception("DataScopeServerBase::takeANap : negative value !");
+#ifndef WIN32
+  struct timespec req,rem;
+  long nbSec((long)napDurationInSec);
+  double remainTime(napDurationInSec-(double)nbSec);
+  req.tv_sec=nbSec;
+  req.tv_nsec=(long)(remainTime*1000000.);
+  int ret(nanosleep(&req,&rem));
+  if(ret!=0)
+    throw Exception("DataScopeServerBase::takeANap : nap not finished as expected !");
+#else
+  throw Exception("DataScopeServerBase::takeANap : not implemented for Windows !");
+#endif
+}
+
 void DataScopeServerBase::initializePython(int argc, char *argv[])
 {
   Py_Initialize();
index c814dd3ec18242247e7505f81d4d6bf7627fac37..eebdb37ec86c4007f839df8d780292b81c7bc538 100644 (file)
@@ -46,6 +46,18 @@ namespace SALOMESDS
     CORBA::ORB_var _orb;
   };
   
+  class SALOMESDS_EXPORT RequestSwitcher : public POA_SALOME::RequestSwitcher, public POAHolder
+  {
+  public:
+    RequestSwitcher(CORBA::ORB_ptr orb);
+    void holdRequests();
+    void activeRequests();
+    PortableServer::POA_var getPOA() const { return _poa_for_request_control; }
+  private:
+    PortableServer::POA_var _poa_for_request_control;
+    PortableServer::POAManager_var _poa_manager_under_control;
+  };
+
   class KeyWaiter;
   class PickelizedPyObjServer;
 
@@ -54,6 +66,7 @@ namespace SALOMESDS
   public:
     DataScopeServerBase(CORBA::ORB_ptr orb, SALOME::DataScopeKiller_var killer, const std::string& scopeName);
     DataScopeServerBase(const DataScopeServerBase& other);
+  public: // remote access methods
     void ping();
     char *getScopeName();
     SALOME::StringVec *listVars();
@@ -63,8 +76,10 @@ namespace SALOMESDS
     CORBA::Boolean shutdownIfNotHostedByDSM(SALOME::DataScopeKiller_out killer);
     SALOME::ByteVec *fetchSerializedContent(const char *varName);
     SALOME::SeqOfByteVec *getAllKeysOfVarWithTypeDict(const char *varName);
-    ~DataScopeServerBase();
+    SALOME::RequestSwitcher_ptr getRequestSwitcher();
+    void takeANap(CORBA::Double napDurationInSec);
   public:
+    ~DataScopeServerBase();
     BasicDataServer *retrieveVarInternal2(const std::string& varName);
     void initializePython(int argc, char *argv[]);
     void registerToSalomePiDict() const;
@@ -99,6 +114,7 @@ namespace SALOMESDS
     std::string _name;
     std::list< std::pair< SALOME::BasicDataServer_var, BasicDataServer * > > _vars;
     SALOME::DataScopeKiller_var _killer;
+    AutoServantPtr<RequestSwitcher> _rs;
     static std::size_t COUNTER;
   };
   
index 96c6cf50632e37e68c464efd1fbc67fd2c78c474..d5ddd8447d08bce863937b4eeacd7ace86b702fa 100644 (file)
 #include "SALOMESDS_Exception.hxx"
 
 SALOMESDS::Exception::Exception(const std::string& reason)
+{
+  this->assign(reason.c_str());
+}
+
+SALOMESDS::Exception::Exception(const char *reason)
+{
+  this->assign(reason);
+}
+
+void SALOMESDS::Exception::assign(const char *reason)
 {
   SALOME::ExceptionStruct es;
   es.type=SALOME::INTERNAL_ERROR;
-  es.text=CORBA::string_dup(reason.c_str());
+  es.text=CORBA::string_dup(reason);
   es.lineNumber=0;
   (*this).details=es;
 }
-
-
index 28d910a1502f6e0df30ea8579b21859a6090b611..61b77f33a86f5438cbc061207a3aa57769275504 100644 (file)
@@ -34,6 +34,9 @@ namespace SALOMESDS
   {
   public:
     Exception(const std::string& reason);
+    Exception(const char *reason);
+  private:
+    void assign(const char *reason);
   };
 }
 
index 7de5f2c2b7b5433ae3acbbbfe486dae55653949d..84c38bc87c34ee10d0daef3829cda5b5575eebac 100644 (file)
@@ -184,8 +184,6 @@ void PickelizedPyObjServer::setNewPyObj(PyObject *obj)
     throw Exception("PickelizedPyObjServer::setNewPyObj : trying to assign a NULL pyobject in this !");
   if(obj==_self)
     return ;
-  if(PyList_Check(obj)==0 && PyDict_Check(obj)==0 && PyTuple_Check(obj)==0 && PyString_Check(obj)==0 && PyInt_Check(obj)==0 && PyBool_Check(obj)==0 && PyFloat_Check(obj)==0 && obj!=Py_None)
-    throw Exception("PickelizedPyObjServer::setNewPyObj : Supported python types are [list,tuple,dict,str,int,bool,float,None] !");
   if(_self)
     {
       PyObject *selfType(PyObject_Type(_self));
index f7daac616a8de5503be6b51bf86a601accb634fe..077a0dddc2926e6266dec2237f888eb21873132f 100644 (file)
@@ -36,7 +36,18 @@ int main(int argc, char *argv[])
   std::istringstream isTransacSS(argv[2]);
   int isTransac(0);
   isTransacSS >> isTransac;
-  CORBA::ORB_var orb(CORBA::ORB_init(argc,argv));
+  CORBA::ORB_var orb;
+  {
+    int argc(3);
+    char **argv=new char *[3];
+    char *p0(strdup("DTC")),*p1(strdup("-ORBsupportCurrent")),*p2(strdup("0"));
+    argv[0]=p0;
+    argv[1]=p1;// by disabling supportCurrent it make the POAManager::hold_requests work !
+    argv[2]=p2;
+    orb=CORBA::ORB_init(argc,argv);
+    free(p0); free(p1); free(p2);
+    delete [] argv;
+  }
   CORBA::Object_var obj(orb->resolve_initial_references("RootPOA"));
   PortableServer::POA_var poa(PortableServer::POA::_narrow(obj));
   PortableServer::POAManager_var mgr(poa->the_POAManager());
index bdbdc67616687d3a50a5c9ab49b0e0ac9a37a4ff..338953335d4c8d0bd8b8e7a4676f09c40cc372fd 100644 (file)
@@ -26,8 +26,11 @@ import unittest
 import cPickle
 import gc
 import time
+from datetime import datetime
 import multiprocessing as mp
 
+nbOfSecWait=1.
+
 def obj2Str(obj):
   return cPickle.dumps(obj,cPickle.HIGHEST_PROTOCOL)
 def str2Obj(strr):
@@ -54,7 +57,35 @@ def work(t):
       print out
       print err
     return proc.returncode
-
+  
+def func_test7(scopeName,l,l2,cv):
+    salome.salome_init()
+    varName="a"
+    zeValue={"ab":[4,5,6]}
+    dsm=salome.naming_service.Resolve("/DataServerManager")
+    dss,isCreated=dsm.giveADataScopeTransactionCalled(scopeName) # should be suspended nbOfSecWait s by main process
+    assert(not isCreated)
+    l.release() # tell manager that I'm ready
+    l2.acquire() # wait for manager to start micro-test1
+    ######### micro-test1 - check that all requests are suspended
+    s=datetime.now()
+    t0=dss.createRdWrVarTransac(varName,obj2Str(zeValue))
+    s=(datetime.now()-s).total_seconds()
+    assert(s>=0.99*nbOfSecWait and s<nbOfSecWait*1.01) # expect to wait nearly nbOfSecWait seconds
+    dss.atomicApply([t0])
+    ######### end of micro-test1
+    ######### micro-test2 - after activeRequests everything work well
+    s=datetime.now()
+    st=dss.fetchSerializedContent(varName)
+    assert(str2Obj(st)==zeValue)
+    s=(datetime.now()-s).total_seconds()
+    assert(s>=0. and s<0.05) # expect to be not locked
+    ######### end of micro-test2
+    with cv:
+      cv.notify_all()
+    dss.takeANap(nbOfSecWait) # emulate a DataServer occupation
+    pass
+  
 class SalomeSDSTest(unittest.TestCase):
   
   def testList1(self):
@@ -309,6 +340,42 @@ class SalomeSDSTest(unittest.TestCase):
     self.assertEqual(str2Obj(dss.fetchSerializedContent(varName)),{'ab':[4,5,6],'cd':[7,8,9,10]})
     pass
 
+  def testLockToDump(self):
+    """ Test to check that holdRequests method. This method wait for clean server status and hold it until activeRequests is called.
+    Warning this method expects a not overloaded machine to be run because test is based on ellapse time.
+    """
+    scopeName="Scope1"
+    dsm=salome.naming_service.Resolve("/DataServerManager")
+    dsm.cleanScopesInNS()
+    if scopeName in dsm.listScopes():
+        dsm.removeDataScope(scopeName)
+    # l is for main process sync. to be sure to launch test when sub process is ready
+    # l2 lock is for sub process sync.
+    l=mp.Lock(); l2=mp.Lock()
+    l.acquire() ; l2.acquire()
+    cv=mp.Condition(mp.Lock())
+    dss,isCreated=dsm.giveADataScopeTransactionCalled(scopeName)
+    #assert(isCreated)
+    p=mp.Process(target=func_test7,args=(scopeName,l,l2,cv))
+    p.start()
+    l.acquire()
+    rs=dss.getRequestSwitcher() ; rs.holdRequests() # The aim of the test
+    l2.release() # tell slave process that it's ready for micro-test1
+    time.sleep(nbOfSecWait)
+    rs.activeRequests() # The aim of the test
+    ######### micro-test3 - check that holdRequests is able to wait for a non finished job
+    with cv:
+      cv.wait()
+      s=datetime.now()
+      time.sleep(0.01) # let main proc the priority
+      rs.holdRequests() # the aim of the test is here. main process is occupied 1s -> holdRequests is Expected to wait
+      s=(datetime.now()-s).total_seconds()
+      rs.activeRequests()
+      assert(s>=0.99*nbOfSecWait and s<nbOfSecWait*1.01) # expect to be not locked
+    # finishing
+    p.join()
+    pass
+
   def setUp(self):
     salome.salome_init()
     pass
index e386b936343549e81b204260ae1772be751a41c4..655230147937cfd490d521a2cbc486083459327d 100644 (file)
@@ -45,7 +45,7 @@ CORBA::ORB_ptr SALOMETraceCollector::_orb = 0;
 // ============================================================================
 /*!
  *  This class is for use with CORBA, inside SALOME.
- *  Type of trace (and corresponding class) is choosen in LocalTraceBufferPool.
+ *  Type of trace (and corresponding class) is chosen in LocalTraceBufferPool.
  *
  *  Guarantees a unique object instance of the class (singleton thread safe)
  *  a separate thread for loop to print traces is launched.
@@ -82,7 +82,7 @@ BaseTraceCollector* SALOMETraceCollector::instance()
 // ============================================================================
 /*!
  *  In a separate thread, loop to print traces.
- *  Mutex garantees intialisation on instance method is done and only one run
+ *  Mutex guarantees intialisation on instance method is done and only one run
  *  allowed (double check ...)
  *  Loop until there is no more buffer to print,
  *  and no ask for end from destructor.
index 1b6c0e4438c9e75b4f448c66cbd79da9e6d03889..c2d09d8497b8f067b1e2e600fddcb17fd9e9aa21 100644 (file)
@@ -89,7 +89,7 @@ public :
  * 
  * <B>Design description</B>
  * 
- *      The destruction object must be created dynamicaly because it suscribes himself in the list of
+ *      The destruction object must be created dynamically because it subcribes itself in the list of
  *      destruction to be performed at the end of the process.
  * 
  */
index 04c2290c50b02a1ff4c0abf737869abdf7a52308..f6cc2369967afaf9997833c0cfe673565c4ae03e 100644 (file)
@@ -183,7 +183,7 @@ Identity::~Identity(void)
         free((char*)_dir);
 #ifndef WIN32
   // free the memory only on Unix
-  // becasue at Windows it is the same static variable
+  // because in Windows it is the same static variable
   // (function get_adip() returns the same char* as get_uname() )
         delete [] (char*)_adip ;
 #endif
index 0ff7f7bb099c611653ec9bab4cada94950f0123d..627d1b9d2c824d8fe745a73635070bcf1aaca1bf 100644 (file)
@@ -45,7 +45,7 @@ def getShortHostName():
     gives Hostname without domain extension.
 
     SALOME naming service needs short Hostnames (without domain extension).
-    HOSTNAME is not allways defined in environment,
+    HOSTNAME is not always defined in environment,
     socket.gethostname() gives short or complete Hostname, depending on
     defined aliases.
     """
@@ -56,7 +56,7 @@ class Identity:
         self._name = name
         self._pid =  os.getpid()
         self._machine = socket.gethostname()
-        self._adip =  socket.gethostbyname(self._machine) # IP adress        
+        self._adip =  socket.gethostbyname(self._machine) # IP address
         if sys.platform == "win32":
           self._uid  = os.getpid() 
           self._pwname = os.environ["USERNAME"]