]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
CCAR: add 2 debug prints
authorcaremoli <caremoli>
Tue, 25 Sep 2007 17:37:39 +0000 (17:37 +0000)
committercaremoli <caremoli>
Tue, 25 Sep 2007 17:37:39 +0000 (17:37 +0000)
src/DSC/DSC_User/Datastream/Calcium/Calcium.cxx
src/DSC/DSC_User/Datastream/Calcium/CalciumInterface.hxx

index 46f2a773de1ca860581051b97d5597b95294404e..c17ddb80a321f590114eb6925658bbc0579755ed 100644 (file)
@@ -5,6 +5,8 @@
 #include <string>
 #include <exception>
 
+//#define _DEBUG_
+
 PySupervCompo::PySupervCompo( CORBA::ORB_ptr orb,
                               PortableServer::POA_ptr poa,
                               Engines::Container_ptr contain,
@@ -49,6 +51,10 @@ extern "C"
 
   void create_calcium_port(Superv_Component_i* compo,char* name,char* type,char *mode,char* depend)
   {
+#ifdef _DEBUG_
+    std::cerr << "create_calcium_port: " << name << " " << type << " " << mode << " " << depend << std::endl;
+#endif
+
     if(std::string(mode) == "IN")
       {
         provides_port * port ;
index 0dac5588a94769dba329de30e2792d6902ffbf24..0238fc12606204d38df8c454a17a1467fa06097b 100644 (file)
@@ -42,6 +42,7 @@
 
 #include <stdio.h>
 
+//#define _DEBUG_
 
 // Déplacer cette information dans CorbaTypeManipulator
 // Gérer en même temps la recopie profonde.
@@ -576,7 +577,7 @@ ecp_fin_ (void * component, int code) {
                                                      static_cast<CalciumTypes::DependencyType>(dependencyType), \
                                                      _t,i,nomvar,_bufferLength,*data); \
     } catch ( const CalciumException & ex) {                           \
-      DEBTRACE( ex.what() )                            \
+      std::cerr << ex.what() << std::endl;                             \
       return ex.getInfo();                                             \
     }                                                                  \
     DEBTRACE( "-------- CalciumInterface(ecriture Inter Part), Valeur de data : " ) \