1 #ifndef __bbstdStringTo_h_INCLUDED__
2 #define __bbstdStringTo_h_INCLUDED__
4 #include "bbtkUserBlackBox.h"
8 //=================================================================
9 // UserBlackBox declaration
11 class StringTo : public bbtk::UserBlackBox
13 BBTK_USER_BLACK_BOX_INTERFACE(StringTo,bbtk::UserBlackBox);
14 BBTK_DECLARE_INPUT(In,std::string);
15 BBTK_DECLARE_OUTPUT(Out,T);
20 //=================================================================
22 // UserBlackBox description
23 BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(StringTo);
24 BBTK_NAME("StringTo"+bbtk::HumanTypeName<T>());
25 BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
26 BBTK_CATEGORY("adaptor");
27 BBTK_DEFAULT_ADAPTOR();
28 BBTK_DESCRIPTION("Converts the content of the input string to a "+bbtk::TypeName<T>());
29 BBTK_TEMPLATE_INPUT(StringTo, In,"Input",std::string);
30 BBTK_TEMPLATE_OUTPUT(StringTo, Out,"Output",T);
31 BBTK_END_DESCRIBE_TEMPLATE_BLACK_BOX(StringTo);
32 //=================================================================
36 #endif // __bbstdStringTo_h_INCLUDED__