]> Creatis software - bbtk.git/blob - packages/std/src/bbstdStringTo.h
13ec026e2cad6601b0683353f7bb410f444bbd7d
[bbtk.git] / packages / std / src / bbstdStringTo.h
1 #ifndef __bbstdStringTo_h_INCLUDED__
2 #define __bbstdStringTo_h_INCLUDED__
3
4 #include "bbtkUserBlackBox.h"
5
6
7 namespace bbstd 
8 {
9
10  
11   //=================================================================
12   // UserBlackBox declaration
13   template <class T>
14   class StringTo : public bbtk::UserBlackBox
15   {  
16     BBTK_USER_BLACK_BOX_INTERFACE(StringTo,bbtk::UserBlackBox);
17     BBTK_DECLARE_INPUT(In,std::string);
18     BBTK_DECLARE_OUTPUT(Out,T);
19     BBTK_PROCESS(DoIt);
20     void DoIt(); 
21   };
22   //=================================================================
23   
24   
25   
26   
27   //=================================================================
28   // UserBlackBox description
29   BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(StringTo);
30   BBTK_NAME("StringTo"+bbtk::HumanTypeName<T>());
31   BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
32   BBTK_DEFAULT_ADAPTOR();
33   BBTK_DESCRIPTION("Converts the content of the input string to a "+bbtk::TypeName<T>());
34   BBTK_TEMPLATE_INPUT(StringTo, In,"Input",std::string);
35   BBTK_TEMPLATE_OUTPUT(StringTo, Out,"Output",T);
36   BBTK_END_DESCRIBE_TEMPLATE_BLACK_BOX(StringTo);
37   //=================================================================
38   
39 } // namespace bbstd
40
41 #endif // __bbstdStringTo_h_INCLUDED__
42
43
44
45