X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fstd%2Fsrc%2FbbstdToString.h;h=f7bd2d3505da3f5ba6eb5587a94da0b1c1af9fae;hb=48552626dab4e044eec21e411cd2897227fef3fd;hp=31c330d743cb14defd3dc45efe5ed5d7d14acbd3;hpb=e27f49d94042bf18dc5067807594325eea8b6d56;p=bbtk.git diff --git a/packages/std/src/bbstdToString.h b/packages/std/src/bbstdToString.h index 31c330d..f7bd2d3 100644 --- a/packages/std/src/bbstdToString.h +++ b/packages/std/src/bbstdToString.h @@ -1,34 +1,32 @@ #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_USER_BLACK_BOX_INTERFACE(ToString,bbtk::AtomicBlackBox); + BBTK_DECLARE_INPUT(In,T); + BBTK_DECLARE_OUTPUT(Out,std::string); BBTK_PROCESS(DoIt); void DoIt(); }; //================================================================= - - - - + //================================================================= - // UserBlackBox description + // BlackBox description BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(ToString); - BBTK_NAME(bbtk::TypeName()+"ToString"); + 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_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);