X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=packages%2Fstd%2Fsrc%2FbbstdStringTo.h;h=49e672c80de4ffb2aff461f52065bfab0cdcc0e3;hb=a4fe3363034ebb3d905fc1cdbc6725539bf272a1;hp=748a4391de8f20f12a10345abedc4184c30a4601;hpb=001c522c9cd723fd522afda8a3882607c2565b85;p=bbtk.git diff --git a/packages/std/src/bbstdStringTo.h b/packages/std/src/bbstdStringTo.h index 748a439..49e672c 100644 --- a/packages/std/src/bbstdStringTo.h +++ b/packages/std/src/bbstdStringTo.h @@ -1,33 +1,34 @@ #ifndef __bbstdStringTo_h_INCLUDED__ #define __bbstdStringTo_h_INCLUDED__ -#include "bbtkUserBlackBox.h" +#include "bbtkAtomicBlackBox.h" namespace bbstd { //================================================================= - // UserBlackBox declaration + // BlackBox declaration template - class StringTo : public bbtk::UserBlackBox + class StringTo : public bbtk::AtomicBlackBox { - BBTK_USER_BLACK_BOX_INTERFACE(StringTo,bbtk::UserBlackBox); + BBTK_USER_BLACK_BOX_INTERFACE(StringTo,bbtk::AtomicBlackBox); BBTK_DECLARE_INPUT(In,std::string); BBTK_DECLARE_OUTPUT(Out,T); BBTK_PROCESS(DoIt); void DoIt(); }; - //================================================================= - - // UserBlackBox description + + //================================================================= + // BlackBox description BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(StringTo); BBTK_NAME("StringTo"+bbtk::HumanTypeName()); BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr"); - BBTK_CATEGORY("adaptor"); BBTK_DEFAULT_ADAPTOR(); - BBTK_DESCRIPTION("Converts the content of the input string to a "+bbtk::TypeName()); - BBTK_TEMPLATE_INPUT(StringTo, In,"Input",std::string); - BBTK_TEMPLATE_OUTPUT(StringTo, Out,"Output",T); + BBTK_DESCRIPTION("Converts the content of the input string to a " + +bbtk::HumanTypeName() + +" ("+bbtk::TypeName()+")"); + BBTK_TEMPLATE_INPUT(StringTo, In,"Input",std::string); + BBTK_TEMPLATE_OUTPUT(StringTo, Out,"Output",T); BBTK_END_DESCRIBE_TEMPLATE_BLACK_BOX(StringTo); //=================================================================