]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkAtomicBlackBoxMacros.h
Fixed Window deletion mechanism
[bbtk.git] / kernel / src / bbtkAtomicBlackBoxMacros.h
index a53e48551304d5d8a303ef5875d54b451651fd06..b9c099fa6d093f436fac6a80b9d89eb7de5f1413 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkAtomicBlackBoxMacros.h,v $
   Language:  C++
-  Date:      $Date: 2009/05/18 10:45:40 $
-  Version:   $Revision: 1.17 $
+  Date:      $Date: 2009/05/28 08:12:05 $
+  Version:   $Revision: 1.18 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
   }                                                                    \
   inline bbtk::BlackBox::Pointer bbClone(const std::string& name)      \
   {                                                                    \
-    bbtkDebugMessage("object",1,"##> "<<#CLASS                         \
-                    <<"::bbClone(\""<<name<<"\")"<<std::endl);         \
+    bbtkBlackBoxDebugMessage("object",1,"##> "<<#CLASS                 \
+                            <<"::bbClone(\""<<name<<"\")"<<std::endl); \
     Pointer p = MakeBlackBoxPointer(new Self(*this,name));             \
-    bbtkDebugMessage("object",1,"<## "<<#CLASS                         \
+    bbtkBlackBoxDebugMessage("object",1,"<## "<<#CLASS                 \
                     <<"::bbClone(\""<<name<<"\")"<<std::endl);         \
     return p;                                                          \
   }                                                                    \
   public:                                                              \
   inline void bbUserProcess()                                          \
   {                                                                    \
-    bbtkDebugMessage("process",1,"**> Processing ["<<bbGetFullName()   \
-                    <<"]"<<std::endl);                                 \
+    bbtkBlackBoxDebugMessage("process",1,"**> Processing..."           \
+                            <<std::endl);                              \
     CALLBACK();                                                                \
-    bbtkDebugMessage("process",1,"<** Processing ["<<bbGetFullName()   \
-                    <<"]"<<std::endl);                                 \
+    bbtkBlackBoxDebugMessage("process",1,"<** Processing"              \
+                            <<std::endl);                              \
   }
 //============================================================================
 
 
 //============================================================================
 #define BBTK_BEGIN_BLACK_BOX_CONSTRUCTOR(CLASS,ALLOC)                  \
-  bbtkDebugMessage("object",2,"==> "<<#CLASS<<"::"<<#CLASS             \
-                  <<"(\""<<bbGetName()<<"\")"<<std::endl);             \
+  bbtkBlackBoxDebugMessage("object",2,"==> "<<#CLASS<<"::"<<#CLASS     \
+                          <<"()"<<std::endl);                          \
   if (ALLOC)                                                           \
     {                                                                  \
       bbLockDescriptor();                                              \
 
 //============================================================================
 #define BBTK_END_BLACK_BOX_CONSTRUCTOR(CLASS)                          \
-  bbtkDebugMessage("object",2,"<== "<<#CLASS<<"::"<<#CLASS             \
-                  <<"(\""<<bbGetName()<<"\")"<<std::endl);             
+  bbtkBlackBoxDebugMessage("object",2,"<== "<<#CLASS<<"::"<<#CLASS     \
+                          <<"()"<<std::endl);          
 //============================================================================
 
 //============================================================================
 #define BBTK_BEGIN_BLACK_BOX_COPY_CONSTRUCTOR(CLASS,FROM,ALLOC)                \
-  bbtkDebugMessageInc("object",2,"==> "<<#CLASS<<"::"<<#CLASS          \
-                     <<"("<<FROM.bbGetFullName()<<",\""                \
-                     <<bbGetName()<<"\")"<<std::endl);                 \
+  bbtkBlackBoxDebugMessage("object",2,"==> "<<#CLASS<<"::"<<#CLASS     \
+                          <<"("<<FROM.bbGetFullName()                  \
+                          <<")"<<std::endl);                           \
   if (ALLOC)                                                           \
     {                                                                  \
       bbLockDescriptor();                                              \
 
 //============================================================================
 #define BBTK_END_BLACK_BOX_COPY_CONSTRUCTOR(CLASS,FROM,ALLOC)          \
-  bbtkDebugMessage("object",2,"<== "<<#CLASS<<"::"<<#CLASS             \
-                  <<"("<<FROM.bbGetFullName()<<",\""                   \
-                  <<bbGetName()<<"\")"<<std::endl);                    \
+  bbtkBlackBoxDebugMessage("object",2,"<== "<<#CLASS<<"::"<<#CLASS     \
+                          <<"("<<FROM.bbGetFullName()                  \
+                          <<")"<<std::endl);                           \
   if (ALLOC)                                                           \
     {                                                                  \
       bbCopyIOValues(FROM);                                            \
 
 //============================================================================
 #define BBTK_BEGIN_BLACK_BOX_DESTRUCTOR(CLASS)                         \
-  bbtkDebugMessage("object",2,"==> "<<#CLASS <<"::~"<< #CLASS          \
-                  <<"() ["<<this->bbGetFullName()<<"]"<<std::endl);    \
+  bbtkBlackBoxDebugMessage("object",2,"==> "<<#CLASS <<"::~"<< #CLASS  \
+                          <<"()"<<std::endl); \
   bbFinalizeProcessing();                                              
 
 
 
 //============================================================================
 #define BBTK_END_BLACK_BOX_DESTRUCTOR(CLASS)                           \
-  bbtkDebugMessage("object",2,"<== "<<#CLASS <<"::~"<< #CLASS          \
-                  <<"() ["<<this->bbGetFullName()<<"]"<<std::endl);
+  bbtkBlackBoxDebugMessage("object",2,"<== "<<#CLASS <<"::~"<< #CLASS  \
+                          <<"()"<<std::endl);
 
 //============================================================================