X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fstd%2Fsrc%2FbbstdStringTo.h;h=61a8d5793377d3742df755035f01e56f555a40a8;hb=8c7d963544d45c3a7d5c262f6dd9d7f8cf8e7cf1;hp=b86e3b5f15a3b8ad8ecf8fa900e0dbc5fe3fa837;hpb=f5db17702a2c51a5933f6c556d070167e4db9cfd;p=bbtk.git diff --git a/packages/std/src/bbstdStringTo.h b/packages/std/src/bbstdStringTo.h index b86e3b5..61a8d57 100644 --- a/packages/std/src/bbstdStringTo.h +++ b/packages/std/src/bbstdStringTo.h @@ -10,9 +10,9 @@ namespace bbstd template class StringTo : public bbtk::AtomicBlackBox { - BBTK_USER_BLACK_BOX_INTERFACE(StringTo,bbtk::AtomicBlackBox); - BBTK_DECLARE_INPUT(In,std::string); - BBTK_DECLARE_OUTPUT(Out,T); + BBTK_TEMPLATE_BLACK_BOX_INTERFACE(StringTo,bbtk::AtomicBlackBox,T); + BBTK_DECLARE_INPUT(In,std::string); + BBTK_DECLARE_OUTPUT(Out,T); BBTK_PROCESS(DoIt); void DoIt(); }; @@ -20,10 +20,9 @@ namespace bbstd //================================================================= // BlackBox description - BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(StringTo); + BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(StringTo,bbtk::AtomicBlackBox); 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::HumanTypeName()