1 #ifndef __bbstdASCII_h_INCLUDED__
2 #define __bbstdASCII_h_INCLUDED__
3 #include "bbtkAtomicBlackBox.h"
9 class /*BBTK_EXPORT*/ ASCII
11 public bbtk::AtomicBlackBox
13 BBTK_BLACK_BOX_INTERFACE(ASCII,bbtk::AtomicBlackBox);
14 //==================================================================
15 /// User callback called in the box contructor
16 virtual void bbUserConstructor();
17 /// User callback called in the box copy constructor
18 virtual void bbUserCopyConstructor();
19 /// User callback called in the box destructor
20 virtual void bbUserDestructor();
21 //==================================================================
22 BBTK_DECLARE_INPUT(In,std::string);
23 BBTK_DECLARE_INPUT(Type,int);
24 BBTK_DECLARE_OUTPUT(Out,std::string);
25 BBTK_PROCESS(Process);
29 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ASCII,bbtk::AtomicBlackBox);
31 BBTK_AUTHOR("eduardo.davila [at] creatis [dot] insa-lyon.fr");
33 BBTK_DESCRIPTION("ascii codes sequence to string - string to ascii codes sequence");
34 BBTK_CATEGORY("misc");
35 BBTK_INPUT(ASCII,In, "Ascii code or Ascii character", std::string,"");
36 BBTK_INPUT(ASCII,Type, "Conversion type (default 0) 0=Ascii codes to string, 1=String to ascii codes",int,"");
37 BBTK_OUTPUT(ASCII,Out, "Ascii codes sequence or characters sequence", std::string,"");
38 BBTK_END_DESCRIBE_BLACK_BOX(ASCII);
43 #endif // __bbstdASCII_h_INCLUDED__