]> Creatis software - bbtk.git/commitdiff
#3548 Clean bbtk boxes debug messages vtk9itk5wx3-macos
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Fri, 3 Jul 2026 12:55:03 +0000 (14:55 +0200)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Fri, 3 Jul 2026 12:55:03 +0000 (14:55 +0200)
kernel/src/bbtkAtomicBlackBoxMacros.h
kernel/src/bbtkBlackBox.cxx
kernel/src/bbtkBlackBox.h
kernel/src/bbtkItkBlackBoxMacros.h
kernel/src/bbtkObject.cxx
kernel/src/bbtkVtkBlackBoxMacros.h
packages/std/src/bbstdAddStringToVector.cxx
packages/std/src/bbstdStringTo.h

index a57dc65536774b764d214221164e7a2b90744f1b..89a33cc73b494692cece760492d625d2048ff30d 100644 (file)
   public:                                                              \
   inline void bbUserProcess()                                          \
   {                                                                    \
-    bbtkBlackBoxDebugMessage("process",1,"**> Processing..."           \
+    bbtkBlackBoxDebugMessage("process",1,"**> Start Processing..."             \
                             <<std::endl);                              \
     CALLBACK();                                                                \
-    bbtkBlackBoxDebugMessage("process",1,"<** Processing"              \
+    bbtkBlackBoxDebugMessage("process",2,"<** End Processing"          \
                             <<std::endl);                              \
   }
 //============================================================================
index 2b82947966ecdcf4006301991cec0cb3a724a165..9477c48465fb6fb3a99100429c53298e4f77a3cb 100644 (file)
@@ -774,7 +774,7 @@ namespace bbtk
                         )
                        {
                 
-// printf("EED BlackBox::bbRecursiveExecute bbProcess start %s \n", bbGetFullName().c_str() );
+ // printf("EED BlackBox::bbRecursiveExecute bbProcess start %s \n", bbGetFullName().c_str() );
                 
 //auto start = std::chrono::high_resolution_clock::now();
                 this->bbProcess();
index 77ebcab00812dd89d5566edd3ba9b8c769bc0c21..34652b2a91b77662a0d9924716419aa68f6e9916 100644 (file)
 #include <boost/bind.hpp>
 #include <boost/signals2/signal.hpp>
 
+
+/* EED 2026-07-03
 #define bbtkBlackBoxMessage(key,level,mess) \
   bbtkMessage(key,level,"["<<bbGetTypeName()<<":"<<bbGetName()<<"] "<<mess)
 #define bbtkBlackBoxDebugMessage(key,level,mess)       \
   bbtkDebugMessage(key,level,"["<<bbGetTypeName()<<":"<<bbGetName()<<"] "<<mess)
+*/
+
+#define bbtkBlackBoxMessage(key,level,mess)        bbtkMessage(key,level,"["<<bbGetFullName()<<"] "<<mess)
+#define bbtkBlackBoxDebugMessage(key,level,mess)   bbtkDebugMessage(key,level,"["<<bbGetFullName()<<"] "<<mess)
+
 
 namespace bbtk
 {
index 2809e3b7ea5b1c6ea298a1b863deb32dfe323cb1..d807681a87b97db3c96dfcd4d3389a4dd83e8c50 100644 (file)
   public:                                                              \
   inline void bbUserProcess()                                          \
   {                                                                    \
-    bbtkBlackBoxDebugMessage("process",1,"**> Processing..."           \
+    bbtkBlackBoxDebugMessage("process",1,"**> Start Processing..."             \
                             <<std::endl);                              \
     itkParent::Update();                                               \
-    bbtkBlackBoxDebugMessage("process",2,"<** Processing"              \
+    bbtkBlackBoxDebugMessage("process",2,"<** End Processing"          \
                             <<std::endl);                              \
   }                                                            
 
index 8663ce6c415ddf54d062762114b92d056174cc20..c860333fc167b32330d17072cf6e36969054603c 100644 (file)
@@ -34,8 +34,6 @@
 =========================================================================*/
 
 
-
-
 #include "bbtkObject.h"
 #include "bbtkMessageManager.h"
 #include "bbtkPackage.h"
index 615af269c35f018852c26bf1ec82a1021b6eebd6..f60a2d984694d01d42a8ae3ba05c4122f4500c4a 100644 (file)
   public:                                                              \
   inline void bbUserProcess()                                          \
   {                                                                    \
-    bbtkBlackBoxDebugMessage("process",1,"**> Processing..."           \
+    bbtkBlackBoxDebugMessage("process",1,"**> Start Processing..."             \
                             <<std::endl);                              \
     mVtkObject->Update();      \
 printf("EED Process %s\n", bbGetFullName().c_str() ); \
   vtkIndent indent(2); \
    mVtkObject->PrintSelf(std::cout, indent ); \
-    bbtkBlackBoxDebugMessage("process",2,"<** Processing"              \
+    bbtkBlackBoxDebugMessage("process",2,"<** End Processing"          \
                             <<std::endl);                              \
   }
 //============================================================================
index 2c80f808b37189d64dd35c619c8e4c2e641487cd..8c171d8674e13c644bd5889004b1101dad0edbd9 100644 (file)
@@ -8,12 +8,12 @@ namespace bbstd
 
 BBTK_ADD_BLACK_BOX_TO_PACKAGE(std,AddStringToVector)
 BBTK_BLACK_BOX_IMPLEMENTATION(AddStringToVector,bbtk::AtomicBlackBox);
-//===== 
+
+//=====
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
 //===== 
 void AddStringToVector::Process()
 {
-
 // THE MAIN PROCESSING METHOD BODY
 //   Here we simply set the input 'In' value to the output 'Out'
 //   And print out the output value
@@ -39,18 +39,18 @@ void AddStringToVector::Process()
     if (bbGetInputIn9().length()!=0) lst.push_back( bbGetInputIn9() );
     bbSetOutputOut( lst );
 }
-//===== 
+
+//=====
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
 //===== 
 void AddStringToVector::bbUserSetDefaultValues()
 {
-
 //  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX 
 //    Here we initialize the input 'In' to 0
 //   bbSetInputIn(0);
-  
 }
-//===== 
+
+//=====
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
 //===== 
 void AddStringToVector::bbUserInitializeProcessing()
@@ -59,23 +59,20 @@ void AddStringToVector::bbUserInitializeProcessing()
 //  THE INITIALIZATION METHOD BODY :
 //    Here does nothing 
 //    but this is where you should allocate the internal/output pointers 
-//    if any 
-
-  
+//    if any
 }
-//===== 
+
+//=====
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
 //===== 
 void AddStringToVector::bbUserFinalizeProcessing()
 {
-
 //  THE FINALIZATION METHOD BODY :
 //    Here does nothing 
 //    but this is where you should desallocate the internal/output pointers 
 //    if any
-  
-}
 }
-// EO namespace bbstd
+
+}// EO namespace bbstd
 
 
index 3224b1123c76e40ff6d9fbd68a8f158d7899a5cd..c0d96c84c17c51ccb7b840a104c5a7bc02dd35f2 100644 (file)
@@ -39,7 +39,7 @@
 #include "bbtkAtomicBlackBox.h"
 #include "bbstd_EXPORT.h"
 
-namespace bbstd 
+namespace bbstd
 { 
   //=================================================================
   // BlackBox declaration