]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
mergefrom BR_Dev_For_4_0 tag mergeto_BR_For40_DSC_16apr07
authorprascle <prascle>
Mon, 16 Apr 2007 13:39:30 +0000 (13:39 +0000)
committerprascle <prascle>
Mon, 16 Apr 2007 13:39:30 +0000 (13:39 +0000)
30 files changed:
idl/Makefile.am
salome_adm/unix/config_files/config.guess
salome_adm/unix/config_files/config.sub
src/Communication/SALOME_Comm_i.hxx
src/Communication/SALOME_Matrix_i.hxx
src/Container/SALOME_Component_i.hxx
src/Container/SALOME_ContainerManager.hxx
src/Container/SALOME_Container_i.hxx
src/Container/SALOME_FileRef_i.hxx
src/Container/SALOME_FileTransfer_i.hxx
src/Logger/SALOME_Logger_Server.hxx
src/ModuleCatalog/SALOME_ModuleCatalog_Acomponent_impl.hxx
src/ModuleCatalog/SALOME_ModuleCatalog_impl.hxx
src/NamingService/Test/NamingServiceTest.hxx
src/SALOMEDS/SALOMEDS_BasicAttribute_i.hxx
src/SALOMEDS/SALOMEDS_Callback_i.hxx
src/SALOMEDS/SALOMEDS_ChildIterator_i.hxx
src/SALOMEDS/SALOMEDS_GenericAttribute_i.hxx
src/SALOMEDS/SALOMEDS_SAttribute_i.hxx
src/SALOMEDS/SALOMEDS_SComponentIterator_i.hxx
src/SALOMEDS/SALOMEDS_SObject_i.hxx
src/SALOMEDS/SALOMEDS_StudyBuilder.cxx
src/SALOMEDS/SALOMEDS_StudyBuilder_i.hxx
src/SALOMEDS/SALOMEDS_StudyManager_i.hxx
src/SALOMEDS/SALOMEDS_Study_i.hxx
src/SALOMEDS/SALOMEDS_UseCaseBuilder_i.hxx
src/SALOMEDS/SALOMEDS_UseCaseIterator_i.hxx
src/SALOMEDS/Test/Makefile.am
src/SALOMEDSImpl/SALOMEDSImpl_StudyBuilder.cxx
src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx

index ce328ceafe73fa321934f20405158e400d3e2591..06d198355ee077bfa91d59477fe554da3ee78135 100644 (file)
@@ -90,9 +90,11 @@ BASEIDL_SOURCES =\
   DSC_EnginesSK.cc \
   SALOME_PortsSK.cc \
   Calcium_PortsSK.cc \
-  Calcium_PortsDynSK.cc \
   Palm_PortsSK.cc
 
+DYNIDL_SOURCES=\
+  Calcium_PortsDynSK.cc
+
 MPIIDL_SOURCES = \
   SALOME_MPIObjectSK.cc \
   SALOME_MPIContainerSK.cc \
@@ -103,8 +105,16 @@ if MPI_IS_OK
   IDL_SOURCES += $(MPIIDL_SOURCES)
 endif
 
+
+STATIDL_SOURCES=$(BASEIDL_SOURCES)
+if MPI_IS_OK
+  STATIDL_SOURCES += $(MPIIDL_SOURCES)
+endif
+
+IDL_SOURCES += $(DYNIDL_SOURCES)
+
 # also install all generated headers to use result library from another modules
-#salomeinclude_DATA= $(IDL_SOURCES:%SK.cc=%.hh)
+salomeinclude_DATA= $(STATIDL_SOURCES:%SK.cc=%.hh)
 
 if WITH_PACO_PARALLEL
 PAR = SALOME_ComponentPaCO.h SALOME_ComponentPaCO.cc \
index 396482d6cb50b24a598700992f65d340165591d6..c38553dc74bb4f06a43f734903d1e1c0f1ed6fdb 100755 (executable)
@@ -1,10 +1,9 @@
 #! /bin/sh
 # Attempt to guess a canonical system name.
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
-#   Inc.
+#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
 
-timestamp='2006-07-02'
+timestamp='2006-02-23'
 
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -211,7 +210,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
        echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
        exit ;;
     macppc:MirBSD:*:*)
-       echo powerpc-unknown-mirbsd${UNAME_RELEASE}
+       echo powerppc-unknown-mirbsd${UNAME_RELEASE}
        exit ;;
     *:MirBSD:*:*)
        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
@@ -771,8 +770,6 @@ EOF
        case ${UNAME_MACHINE} in
            pc98)
                echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
-           amd64)
-               echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
            *)
                echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
        esac
@@ -783,6 +780,9 @@ EOF
     i*:MINGW*:*)
        echo ${UNAME_MACHINE}-pc-mingw32
        exit ;;
+    i*:MSYS_NT-*:*:*)
+       echo ${UNAME_MACHINE}-pc-mingw32
+       exit ;;
     i*:windows32*:*)
        # uname -m includes "-pc" on this system.
        echo ${UNAME_MACHINE}-mingw32
@@ -790,10 +790,10 @@ EOF
     i*:PW*:*)
        echo ${UNAME_MACHINE}-pc-pw32
        exit ;;
-    x86:Interix*:[3456]*)
+    x86:Interix*:[345]*)
        echo i586-pc-interix${UNAME_RELEASE}
        exit ;;
-    EM64T:Interix*:[3456]*)
+    EM64T:Interix*:[345]*)
        echo x86_64-unknown-interix${UNAME_RELEASE}
        exit ;;
     [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
@@ -831,9 +831,6 @@ EOF
     arm*:Linux:*:*)
        echo ${UNAME_MACHINE}-unknown-linux-gnu
        exit ;;
-    avr32*:Linux:*:*)
-       echo ${UNAME_MACHINE}-unknown-linux-gnu
-       exit ;;
     cris:Linux:*:*)
        echo cris-axis-linux-gnu
        exit ;;
@@ -992,7 +989,7 @@ EOF
        LIBC=gnulibc1
        # endif
        #else
-       #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
+       #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__sun)
        LIBC=gnu
        #else
        LIBC=gnuaout
index fab0aa3556632a4aec253b77804270a096c11c3e..ad9f39571183b5c22b2d269bb52eb9ad50227430 100755 (executable)
@@ -1,10 +1,9 @@
 #! /bin/sh
 # Configuration validation subroutine script.
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
-#   Inc.
+#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
 
-timestamp='2006-09-20'
+timestamp='2006-02-23'
 
 # This file is (in principle) common to ALL GNU software.
 # The presence of a machine in this file suggests that SOME GNU software
@@ -241,7 +240,7 @@ case $basic_machine in
        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
        | am33_2.0 \
-       | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
+       | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
        | bfin \
        | c4x | clipper \
        | d10v | d30v | dlx | dsp16xx \
@@ -249,8 +248,7 @@ case $basic_machine in
        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
        | i370 | i860 | i960 | ia64 \
        | ip2k | iq2000 \
-       | m32c | m32r | m32rle | m68000 | m68k | m88k \
-       | maxq | mb | microblaze | mcore \
+       | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \
        | mips | mipsbe | mipseb | mipsel | mipsle \
        | mips16 \
        | mips64 | mips64el \
@@ -276,19 +274,21 @@ case $basic_machine in
        | pdp10 | pdp11 | pj | pjl \
        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
        | pyramid \
-       | score \
-       | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
+       | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
        | sh64 | sh64le \
-       | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
-       | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
-       | spu | strongarm \
+       | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
+       | sparcv8 | sparcv9 | sparcv9b \
+       | strongarm \
        | tahoe | thumb | tic4x | tic80 | tron \
        | v850 | v850e \
        | we32k \
-       | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
+       | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
        | z8k)
                basic_machine=$basic_machine-unknown
                ;;
+       m32c)
+               basic_machine=$basic_machine-unknown
+               ;;
        m6811 | m68hc11 | m6812 | m68hc12)
                # Motorola 68HC11/12.
                basic_machine=$basic_machine-unknown
@@ -318,7 +318,7 @@ case $basic_machine in
        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
-       | avr-* | avr32-* \
+       | avr-* \
        | bfin-* | bs2000-* \
        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
        | clipper-* | craynv-* | cydra-* \
@@ -329,7 +329,7 @@ case $basic_machine in
        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
        | i*86-* | i860-* | i960-* | ia64-* \
        | ip2k-* | iq2000-* \
-       | m32c-* | m32r-* | m32rle-* \
+       | m32r-* | m32rle-* \
        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
        | m88110-* | m88k-* | maxq-* | mcore-* \
        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
@@ -358,21 +358,23 @@ case $basic_machine in
        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
        | pyramid-* \
        | romp-* | rs6000-* \
-       | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
+       | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
-       | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
+       | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
        | sparclite-* \
-       | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
+       | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
        | tahoe-* | thumb-* \
        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
        | tron-* \
        | v850-* | v850e-* | vax-* \
        | we32k-* \
-       | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
+       | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
        | xstormy16-* | xtensa-* \
        | ymp-* \
        | z8k-*)
                ;;
+       m32c-*)
+               ;;
        # Recognize the various machine names and aliases which stand
        # for a CPU type and a company and sometimes even an OS.
        386bsd)
@@ -910,10 +912,6 @@ case $basic_machine in
        sb1el)
                basic_machine=mipsisa64sb1el-unknown
                ;;
-       sde)
-               basic_machine=mipsisa32-sde
-               os=-elf
-               ;;
        sei)
                basic_machine=mips-sei
                os=-seiux
@@ -1130,7 +1128,7 @@ case $basic_machine in
        sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
                basic_machine=sh-unknown
                ;;
-       sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
+       sparc | sparcv8 | sparcv9 | sparcv9b)
                basic_machine=sparc-sun
                ;;
        cydra)
@@ -1219,7 +1217,7 @@ case $os in
              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
-             | -skyos* | -haiku* | -rdos* | -toppers*)
+             | -skyos* | -haiku* | -rdos*)
        # Remember, each alternative MUST END IN *, to match a version number.
                ;;
        -qnx*)
@@ -1371,12 +1369,6 @@ else
 # system, and we'll never get to this point.
 
 case $basic_machine in
-        score-*)
-               os=-elf
-               ;;
-        spu-*)
-               os=-elf
-               ;;
        *-acorn)
                os=-riscix1.2
                ;;
@@ -1386,9 +1378,9 @@ case $basic_machine in
        arm*-semi)
                os=-aout
                ;;
-        c4x-* | tic4x-*)
-               os=-coff
-               ;;
+    c4x-* | tic4x-*)
+        os=-coff
+        ;;
        # This must come before the *-dec entry.
        pdp10-*)
                os=-tops20
index 4bcde2ef4258457ae6b6b4029fa73c601b653484..6664fc4c08bbadaef10c0fdd049ee073b96966f7 100644 (file)
@@ -36,8 +36,8 @@
   Generic servant class for senders that factorizes all the common methods and attributes necessary to senders.
   All servant classes for senders have to inheritate from it.
  */
-class COMMUNICATION_EXPORT SALOME_Sender_i : public virtual POA_SALOME::Sender,
-                       public PortableServer::RefCountServantBase {
+class COMMUNICATION_EXPORT SALOME_Sender_i : public virtual POA_SALOME::Sender
+{
 protected:
   /*! Pointer to the generic array to transmit*/
   const void *_tabToSend;
index 3b3d33af7d70e42752dca92211d1ebf7ce8d18d1..26e8729a84e369f6633a4b22efb677ad99bb0e68 100644 (file)
@@ -24,8 +24,8 @@
 #include CORBA_SERVER_HEADER(SALOME_Comm)
 #include "SALOMEMultiComm.hxx"
 
-class SALOME_Matrix_i : public virtual POA_SALOME::Matrix,
-                       public PortableServer::RefCountServantBase {
+class SALOME_Matrix_i : public virtual POA_SALOME::Matrix
+{
 private:
   const double *_tabToSend;
   int _nbOfRow;
index 5107cb59e61be08296a5db86e36b1bd85f73c599..3bd3f85d09dee9bd6bcba10adfa6b61116cb0989 100644 (file)
@@ -49,7 +49,7 @@ class Engines_Container_i;
 
 class CONTAINER_EXPORT Engines_Component_i: 
   public virtual POA_Engines::Component,
-  public virtual PortableServer::RefCountServantBase
+  public virtual PortableServer::ServantBase
 {
 public:
   Engines_Component_i();
index 9369135e99bc4bab8273314ee0e9230493338e96..9c24963f7c0ac83588ddd6e87044bc9745606942 100644 (file)
@@ -33,8 +33,7 @@
 class SALOME_NamingService;
 
 class CONTAINER_EXPORT SALOME_ContainerManager:
-  public POA_Engines::ContainerManager,
-  public PortableServer::RefCountServantBase
+  public POA_Engines::ContainerManager
 {
 
 public:
index 181c4f84e9dedaf38c253b3e126ac69d60e7ffaf..fe32eba833a6861eff225314225f5a4aee6706a3 100644 (file)
@@ -49,7 +49,7 @@ class SALOME_NamingService;
 
 class CONTAINER_EXPORT Engines_Container_i:
   public virtual POA_Engines::Container,
-  public virtual PortableServer::RefCountServantBase
+  public virtual PortableServer::ServantBase
 {
 public:
   Engines_Container_i();
index 61b3f52f2edf344c19399918b7301cc079570eee..3e32964a53025dffdf256f80f97113650e8cf754 100644 (file)
@@ -36,7 +36,7 @@
 
 class CONTAINER_EXPORT fileRef_i:
   public virtual POA_Engines::fileRef,
-  public virtual PortableServer::RefCountServantBase
+  public virtual PortableServer::ServantBase
 {
 public:
   fileRef_i();
index c0ecb18e6060046386e9c9ae679e20d7671619c0..f35a5582da23c38675d770f3e67dba058cc10eaf 100644 (file)
@@ -36,7 +36,7 @@
 
 class CONTAINER_EXPORT fileTransfer_i:
   public virtual POA_Engines::fileTransfer,
-  public virtual PortableServer::RefCountServantBase
+  public virtual PortableServer::ServantBase
 {
 public:
   fileTransfer_i();
index 9f7a16a83b5c372f107da0c032cd28825c4e18fd..5b1f13f938b815da616bbcbd9d15b5fe17f05d02 100644 (file)
@@ -32,8 +32,7 @@
 
 
 class LOGGER_EXPORT Logger :
-  public POA_SALOME_Logger::Logger,
-  public PortableServer::RefCountServantBase 
+  public POA_SALOME_Logger::Logger
 {
 public:
         //constructor w/o parameters
index c6ce34ea5947bc7d89b57e5e9ad44496b3d6d645..c7b580a177ca6a405ea4101cb8fd4580f94175b4 100644 (file)
@@ -36,8 +36,7 @@
 
 #include CORBA_SERVER_HEADER(SALOME_ModuleCatalog)
 
-class MODULECATALOG_EXPORT SALOME_ModuleCatalog_AcomponentImpl: public POA_SALOME_ModuleCatalog::Acomponent,
-                      public PortableServer::RefCountServantBase 
+class MODULECATALOG_EXPORT SALOME_ModuleCatalog_AcomponentImpl: public POA_SALOME_ModuleCatalog::Acomponent
 {
 public:
   //! standard constructor
index 92976b7e3f0c7b425c91d39a58cec350ec984fba..5dad3bacf8040313d3d2ed2875366384e9d5bd88 100644 (file)
@@ -40,8 +40,7 @@
 #include <SALOMEconfig.h>
 #include CORBA_SERVER_HEADER(SALOME_ModuleCatalog)
 
-class MODULECATALOG_EXPORT SALOME_ModuleCatalogImpl: public POA_SALOME_ModuleCatalog::ModuleCatalog,
-                               public PortableServer::RefCountServantBase 
+class MODULECATALOG_EXPORT SALOME_ModuleCatalogImpl: public POA_SALOME_ModuleCatalog::ModuleCatalog
 {
 public:
   //! standard constructor
index d41ddcae39b5dbc39976c87e06298864603908c9..b471a944994314670b87d2724d4706ccc83753ec 100644 (file)
@@ -28,7 +28,7 @@
 #include CORBA_SERVER_HEADER(nstest)
 
 class NSTEST_echo_i : public virtual POA_NSTEST::echo,
-                     public virtual PortableServer::RefCountServantBase
+                     public virtual PortableServer::ServantBase
 {
 public:
   NSTEST_echo_i();
@@ -40,7 +40,7 @@ private:
 };
 
 class NSTEST_aFactory_i : public virtual POA_NSTEST::aFactory,
-                         public virtual PortableServer::RefCountServantBase
+                         public virtual PortableServer::ServantBase
 {
 public:
   NSTEST_aFactory_i();
index 9501817865998917b5aef4178b89387c611e395b..26455a9f30799d7a70bb506f521c453bfdfb3f6d 100644 (file)
@@ -35,7 +35,7 @@
 #include <TDF_Label.hxx>
 
 class SALOMEDS_BasicAttribute_i: public POA_SALOMEDS::BasicAttribute,
-                                public PortableServer::RefCountServantBase {
+                                public PortableServer::ServantBase {
 protected:
   TDF_Label _Lab;
 
index ffc6e6db2a1a88e47751ba280960a97d54e75e4b..d6f7554372303cdea3668e8693281b33b6bada7d 100644 (file)
@@ -16,7 +16,7 @@
 #include CORBA_SERVER_HEADER(SALOMEDS)
 
 class SALOMEDS_Callback_i: public virtual POA_SALOMEDS::Callback,
-                          public virtual PortableServer::RefCountServantBase 
+                          public virtual PortableServer::ServantBase 
 {
 private:
   SALOMEDS::UseCaseBuilder_var _builder;
index 7092d89f3709cbb5622134435f1458b1fd030cf2..d2af3944d44b874bc5eb9ec2d9a7ef49aaff3e7e 100644 (file)
@@ -37,7 +37,7 @@
 #include <stdio.h>
 
 class SALOMEDS_ChildIterator_i: public virtual POA_SALOMEDS::ChildIterator,
-                               public virtual PortableServer::RefCountServantBase,
+                               public virtual PortableServer::ServantBase,
                                public virtual SALOME::GenericObj_i
 {
 private:
index 32176a41a2965ac42fc09fb2d5d11e44171ce896..093ed285a47bd3f6e1726488e8e71c8565665ff2 100644 (file)
@@ -33,7 +33,7 @@
 #include "SALOMEDSImpl_GenericAttribute.hxx"
 
 class Standard_EXPORT SALOMEDS_GenericAttribute_i: public virtual POA_SALOMEDS::GenericAttribute,
-                                  public virtual PortableServer::RefCountServantBase,
+                                  public virtual PortableServer::ServantBase,
                                   public virtual SALOME::GenericObj_i
 {
 
index 4652d95ee372eb43689791e79a9a94d9ce3ffd41..0b1106ff08a0ad18a7a9cb53d4dbb254e01f7b39 100644 (file)
@@ -43,7 +43,7 @@
 #include <stdio.h>
 
 class SALOMEDS_SAttribute_i: public POA_IStudy::SAttribute,
-                       public PortableServer::RefCountServantBase {
+                       public PortableServer::ServantBase {
 private:
   CORBA::ORB_ptr           _orb;
   char*                    _Type;
index dba9faad69e02795ac86f5a80212e4e5afe590ca..3335a1a287342a1e97130350d478015d47c0af36 100644 (file)
@@ -37,7 +37,7 @@
 #include "SALOMEDSImpl_SComponentIterator.hxx"
 
 class SALOMEDS_SComponentIterator_i:public virtual POA_SALOMEDS::SComponentIterator,
-                                   public virtual PortableServer::RefCountServantBase,
+                                   public virtual PortableServer::ServantBase,
                                    public virtual SALOME::GenericObj_i 
 {
 
index 2a492fc224a688ca60d8c23e055d63e790a7c6e0..b836a2bee151962fd275cb0dccf0ade137eb2bf0 100644 (file)
@@ -36,7 +36,7 @@
 #include "SALOMEDSImpl_SObject.hxx"
 
 class Standard_EXPORT SALOMEDS_SObject_i: public virtual POA_SALOMEDS::SObject,
-                         public virtual PortableServer::RefCountServantBase,
+                         public virtual PortableServer::ServantBase,
                          public virtual SALOME::GenericObj_i
 {
 protected:
index 277ceebb9bd697b7a5dcb027c0fcd3d7361cd5f8..2d5a3901c3b62b2aad4d13899dfec0da829e5b01 100644 (file)
@@ -98,7 +98,7 @@ _PTR(SComponent) SALOMEDS_StudyBuilder::NewComponent(const std::string& Componen
 void SALOMEDS_StudyBuilder::DefineComponentInstance (const _PTR(SComponent)& theSCO, 
                                                     const std::string& ComponentIOR)
 {
-  if(theSCO) return;
+  if(!theSCO) return;
 
   SALOMEDS_SComponent* aSCO = dynamic_cast<SALOMEDS_SComponent*>(theSCO.get());
   if (_isLocal) {
index ae6d0e5c527c4755a21fedee210058ca3705fa89..40d5fd18d2d10b7da39b637a028ae3b774aabd62 100644 (file)
@@ -37,8 +37,7 @@
 // Cascade header
 #include <TDocStd_Document.hxx>
 
-class SALOMEDS_StudyBuilder_i: public POA_SALOMEDS::StudyBuilder,
-                               public PortableServer::RefCountServantBase 
+class SALOMEDS_StudyBuilder_i: public POA_SALOMEDS::StudyBuilder
 {
 private:
   CORBA::ORB_ptr                    _orb;
index 31c486f7b29e7b49646d4dfbe7233ee4d56f5de5..9ef1801bb5dfbb31d21bffd4e3b7fbabf83d08d2 100644 (file)
@@ -51,8 +51,8 @@ namespace SALOMEDS{
 
 }    
 
-class Standard_EXPORT SALOMEDS_StudyManager_i: public POA_SALOMEDS::StudyManager,
-                              public PortableServer::RefCountServantBase {
+class Standard_EXPORT SALOMEDS_StudyManager_i: public POA_SALOMEDS::StudyManager
+{
 private:
 
   CORBA::ORB_ptr                    _orb;
index 6d44afc958b04b32a087e96c11ce83e3d264d8b8..137eca8727a7bb5704e4c9514b7132400dae5e09 100644 (file)
@@ -43,8 +43,7 @@
 #include "SALOMEDSImpl_Study.hxx"
 #include "SALOMEDSImpl_AttributeIOR.hxx"
 
-class Standard_EXPORT SALOMEDS_Study_i: public POA_SALOMEDS::Study,
-                       public PortableServer::RefCountServantBase 
+class Standard_EXPORT SALOMEDS_Study_i: public POA_SALOMEDS::Study
 {
 private:
   CORBA::ORB_ptr                 _orb;
index c9d039d576c090f7c7280cff440af4f726e13509..895d1c02763b695d5af8a67fcec84a7c51dd1329 100644 (file)
@@ -41,7 +41,7 @@
 #include "SALOMEDSImpl_UseCaseBuilder.hxx"
 
 class SALOMEDS_UseCaseBuilder_i: public virtual POA_SALOMEDS::UseCaseBuilder,
-                                public virtual PortableServer::RefCountServantBase,
+                                public virtual PortableServer::ServantBase,
                                 public virtual SALOME::GenericObj_i
 {
 private:
index 0197c77e9f4703bfc49a9829994c9df442e99464..0f4262039965a106ec5b2bfe6b4ec968592656fa 100644 (file)
@@ -35,7 +35,7 @@
 #include "SALOMEDSImpl_UseCaseIterator.hxx"
 
 class SALOMEDS_UseCaseIterator_i: public virtual POA_SALOMEDS::UseCaseIterator,
-                                 public virtual PortableServer::RefCountServantBase, 
+                                 public virtual PortableServer::ServantBase, 
                                  public virtual SALOME::GenericObj_i
 {
 private:
index be6a606477e6f229f470d92a800d35a328defa51..7c0008c99cbe82836d16ca7d9668d89931e4b356 100644 (file)
@@ -91,18 +91,57 @@ COMMON_LIBS =\
 # ===============================================================
 #
 lib_LTLIBRARIES = libSALOMEDSTest.la 
-libSALOMEDSTest_la_SOURCES = SALOMEDSTest.cxx
+dist_libSALOMEDSTest_la_SOURCES = SALOMEDSTest.cxx
 libSALOMEDSTest_la_CPPFLAGS = $(COMMON_CPPFLAGS)
 libSALOMEDSTest_la_LDFLAGS  = -no-undefined -version-info=0:0:0
 libSALOMEDSTest_la_LIBADD    = $(COMMON_LIBS)
 
+EXTRA_DIST = \
+       SALOMEDSTest_AttributeComment.cxx \
+       SALOMEDSTest_AttributeDrawable.cxx \
+       SALOMEDSTest_AttributeExpandable.cxx \
+       SALOMEDSTest_AttributeExternalFileDef.cxx \
+       SALOMEDSTest_AttributeFileType.cxx \
+       SALOMEDSTest_AttributeFlags.cxx \
+       SALOMEDSTest_AttributeGraphic.cxx \
+       SALOMEDSTest_AttributeInteger.cxx \
+       SALOMEDSTest_AttributeIOR.cxx \
+       SALOMEDSTest_AttributeLocalID.cxx \
+       SALOMEDSTest_AttributeName.cxx \
+       SALOMEDSTest_AttributeOpened.cxx \
+       SALOMEDSTest_AttributeParameter.cxx \
+       SALOMEDSTest_AttributePersistentRef.cxx \
+       SALOMEDSTest_AttributePixMap.cxx \
+       SALOMEDSTest_AttributePythonObject.cxx \
+       SALOMEDSTest_AttributeReal.cxx \
+       SALOMEDSTest_AttributeSelectable.cxx \
+       SALOMEDSTest_AttributeSequenceOfInteger.cxx \
+       SALOMEDSTest_AttributeSequenceOfReal.cxx \
+       SALOMEDSTest_AttributeStudyProperties.cxx \
+       SALOMEDSTest_AttributeTableOfInteger.cxx \
+       SALOMEDSTest_AttributeTableOfReal.cxx \
+       SALOMEDSTest_AttributeTableOfString.cxx \
+       SALOMEDSTest_AttributeTarget.cxx \
+       SALOMEDSTest_AttributeTextColor.cxx \
+       SALOMEDSTest_AttributeTextHighlightColor.cxx\
+       SALOMEDSTest_AttributeTreeNode.cxx \
+       SALOMEDSTest_AttributeUserID.cxx \
+       SALOMEDSTest_ChildIterator.cxx \
+       SALOMEDSTest_SComponent.cxx \
+       SALOMEDSTest_SComponentIterator.cxx \
+       SALOMEDSTest_SObject.cxx \
+       SALOMEDSTest_StudyBuilder.cxx \
+       SALOMEDSTest_Study.cxx \
+       SALOMEDSTest_StudyManager.cxx \
+       SALOMEDSTest_UseCase.cxx
+
 #
 # ===============================================================
 # Executables targets
 # ===============================================================
 #
 bin_PROGRAMS = TestSALOMEDS
-TestSALOMEDS_SOURCES  = TestSALOMEDS.cxx
+dist_TestSALOMEDS_SOURCES  = TestSALOMEDS.cxx
 TestSALOMEDS_CPPFLAGS = $(COMMON_CPPFLAGS)
 TestSALOMEDS_LDADD    = \
        libSALOMEDSTest.la ../libSalomeDS.la \
index f963a80c4257e22d357823edba55079e3905b965..bc23ce57baa7edcc1f1414e1aef8eded40cbed29 100644 (file)
@@ -476,14 +476,16 @@ Handle(TDF_Attribute) SALOMEDSImpl_StudyBuilder::FindOrCreateAttribute(const Han
 
   //The macro adds all necessary checks for standardly behaiving attributes
   __FindOrCreateAttributeForBuilder
-  
+
   //Add checks for TreeNode and UserID attributes  
   if (strncmp(aTypeOfAttribute.ToCString(), "AttributeTreeNode",17) == 0 ) {
+    
     Standard_GUID aTreeNodeGUID;
     if (strcmp(aTypeOfAttribute.ToCString(), "AttributeTreeNode") == 0) {
       aTreeNodeGUID = SALOMEDSImpl_AttributeTreeNode::GetDefaultTreeID();
     } else {
-      char* aGUIDString = new char[40];
+      char* aGUIDString = new char[41];
       char* aType = (char*)aTypeOfAttribute.ToCString();
       sprintf(aGUIDString, &(aType[17]));
       if(!Standard_GUID::CheckGUIDFormat(aGUIDString)) {
@@ -506,7 +508,7 @@ Handle(TDF_Attribute) SALOMEDSImpl_StudyBuilder::FindOrCreateAttribute(const Han
     if (strcmp(aTypeOfAttribute.ToCString(), "AttributeUserID") == 0) {
       aUserGUID = SALOMEDSImpl_AttributeUserID::DefaultID();
     } else {
-      char* aGUIDString = new char[40];
+      char* aGUIDString = new char[41];
       char* aType = (char*)aTypeOfAttribute.ToCString();
       sprintf(aGUIDString, &(aType[15]));
       if(!Standard_GUID::CheckGUIDFormat(aGUIDString)) {
index dd91556cd8dc9948c3557aa81058e2ab5fd21e6e..17bad0e6a0a5bb8cf2705c6022b8d9a0cb7b4a15 100644 (file)
@@ -1170,9 +1170,9 @@ static void ReadAttributes(const Handle(SALOMEDSImpl_Study)& theStudy,
 
   Handle(TDF_Attribute) anAttr;
 
-  char* current_string = new char[hdf_dataset->GetSize()];
+  char* current_string = new char[hdf_dataset->GetSize()+1];
   hdf_dataset->ReadFromDisk(current_string);
-
+  
   if (!strcmp(hdf_dataset->GetName(),"COMPONENTDATATYPE")) {
     anAttr = theStudy->NewBuilder()->FindOrCreateAttribute(aSO, "AttributeComment");
   } else if (!strcmp(hdf_dataset->GetName(),"AttributeReference") ||
@@ -1184,14 +1184,14 @@ static void ReadAttributes(const Handle(SALOMEDSImpl_Study)& theStudy,
   } else {
     anAttr = theStudy->NewBuilder()->FindOrCreateAttribute(aSO, hdf_dataset->GetName());
   }
-
+  
   if (!anAttr.IsNull()) {
 
     Handle(SALOMEDSImpl_GenericAttribute) ga = Handle(SALOMEDSImpl_GenericAttribute)::DownCast(anAttr);
     ga->Load(current_string);
     //cout << "Reading: " << aSO->GetID() << " "<< ga->Type() << " value: " << current_string << endl;
   }
-
+  
   delete(current_string);
   hdf_dataset->CloseOnDisk();
 }