]> Creatis software - bbtk.git/blobdiff - packages/std/src/bbstdToString.h
Last fixes (until next one)
[bbtk.git] / packages / std / src / bbstdToString.h
index f7bd2d3505da3f5ba6eb5587a94da0b1c1af9fae..f1be738a19c38fe678b6635f3673f16e4234d3a8 100644 (file)
@@ -10,9 +10,9 @@ namespace bbstd
   template <class T>
   class ToString : public bbtk::AtomicBlackBox
   {  
-    BBTK_USER_BLACK_BOX_INTERFACE(ToString,bbtk::AtomicBlackBox);
-      BBTK_DECLARE_INPUT(In,T);
-      BBTK_DECLARE_OUTPUT(Out,std::string);
+    BBTK_TEMPLATE_BLACK_BOX_INTERFACE(ToString,bbtk::AtomicBlackBox,T);
+    BBTK_DECLARE_INPUT(In,T);
+    BBTK_DECLARE_OUTPUT(Out,std::string);
     BBTK_PROCESS(DoIt);
     void DoIt(); 
   };
@@ -20,10 +20,9 @@ namespace bbstd
 
   //=================================================================
   // BlackBox description
-  BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(ToString);
+  BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(ToString,bbtk::AtomicBlackBox);
   BBTK_NAME(bbtk::HumanTypeName<T>()+"ToString");
   BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
-  BBTK_CATEGORY("adaptor");
   BBTK_DEFAULT_ADAPTOR();
   BBTK_DESCRIPTION("Converts a "+bbtk::HumanTypeName<T>()+" ("
                   +bbtk::TypeName<T>()+") into a string");