]> Creatis software - bbtk.git/commitdiff
#3548 Clean bbtk boxes debug messages
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 a57dc65..89a33cc 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 2b82947..9477c48 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 77ebcab..34652b2 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 2809e3b..d807681 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 8663ce6..c860333 100644 (file)
@@ -34,8 +34,6 @@
 =========================================================================*/
 
 
-
-
 #include "bbtkObject.h"
 #include "bbtkMessageManager.h"
 #include "bbtkPackage.h"
index 615af26..f60a2d9 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 2c80f80..8c171d8 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 3224b11..c0d96c8 100644 (file)
@@ -39,7 +39,7 @@
 #include "bbtkAtomicBlackBox.h"
 #include "bbstd_EXPORT.h"
 
-namespace bbstd 
+namespace bbstd
 { 
   //=================================================================
   // BlackBox declaration