X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fstd%2Fsrc%2FbbstdToString.h;h=f1be738a19c38fe678b6635f3673f16e4234d3a8;hb=7a26044dd46cb80ab90ee1f63d3b4d8ce52b2d39;hp=8b887d2fa29bbff373cee724aa58c695bccba279;hpb=001c522c9cd723fd522afda8a3882607c2565b85;p=bbtk.git diff --git a/packages/std/src/bbstdToString.h b/packages/std/src/bbstdToString.h index 8b887d2..f1be738 100644 --- a/packages/std/src/bbstdToString.h +++ b/packages/std/src/bbstdToString.h @@ -1,33 +1,33 @@ #ifndef __bbstdToString_h_INCLUDED__ #define __bbstdToString_h_INCLUDED__ -#include "bbtkUserBlackBox.h" +#include "bbtkAtomicBlackBox.h" namespace bbstd { //================================================================= - // UserBlackBox declaration + // BlackBox declaration template - class ToString : public bbtk::UserBlackBox + class ToString : public bbtk::AtomicBlackBox { - BBTK_USER_BLACK_BOX_INTERFACE(ToString,bbtk::UserBlackBox); - 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(); }; - //================================================================= - // UserBlackBox description - BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(ToString); - BBTK_NAME(bbtk::TypeName()+"ToString"); + //================================================================= + // BlackBox description + BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(ToString,bbtk::AtomicBlackBox); + BBTK_NAME(bbtk::HumanTypeName()+"ToString"); BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr"); - BBTK_CATEGORY("adaptor"); BBTK_DEFAULT_ADAPTOR(); - BBTK_DESCRIPTION("Converts a "+bbtk::TypeName()+" into a string"); - BBTK_TEMPLATE_INPUT(ToString, In,"Input",T); - BBTK_TEMPLATE_OUTPUT(ToString, Out,"Output",std::string); + BBTK_DESCRIPTION("Converts a "+bbtk::HumanTypeName()+" (" + +bbtk::TypeName()+") into a string"); + BBTK_TEMPLATE_INPUT(ToString, In,"Input",T); + BBTK_TEMPLATE_OUTPUT(ToString, Out,"Output",std::string); BBTK_END_DESCRIBE_TEMPLATE_BLACK_BOX(ToString); //=================================================================