X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fstd%2Fsrc%2FbbstdStringTo.h;h=61a8d5793377d3742df755035f01e56f555a40a8;hb=4ad5b5ee44357ad873bc8c43230defb6d0a79879;hp=13ec026e2cad6601b0683353f7bb410f444bbd7d;hpb=e27f49d94042bf18dc5067807594325eea8b6d56;p=bbtk.git diff --git a/packages/std/src/bbstdStringTo.h b/packages/std/src/bbstdStringTo.h index 13ec026..61a8d57 100644 --- a/packages/std/src/bbstdStringTo.h +++ b/packages/std/src/bbstdStringTo.h @@ -1,36 +1,32 @@ #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_TEMPLATE_BLACK_BOX_INTERFACE(StringTo,bbtk::AtomicBlackBox,T); BBTK_DECLARE_INPUT(In,std::string); BBTK_DECLARE_OUTPUT(Out,T); BBTK_PROCESS(DoIt); void DoIt(); }; //================================================================= - - - - - //================================================================= - // UserBlackBox description - BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(StringTo); + + //================================================================= + // BlackBox description + BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(StringTo,bbtk::AtomicBlackBox); BBTK_NAME("StringTo"+bbtk::HumanTypeName()); BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr"); BBTK_DEFAULT_ADAPTOR(); - BBTK_DESCRIPTION("Converts the content of the input string to a "+bbtk::TypeName()); + 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); @@ -39,7 +35,3 @@ namespace bbstd } // namespace bbstd #endif // __bbstdStringTo_h_INCLUDED__ - - - -