00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef __bbstdStringSelect_h_INCLUDED__
00033 #define __bbstdStringSelect_h_INCLUDED__
00034
00035 #include "bbtkAtomicBlackBox.h"
00036
00037 namespace bbstd
00038 {
00039
00040 class StringSelect
00041 :
00042 public bbtk::AtomicBlackBox
00043 {
00044 BBTK_BLACK_BOX_INTERFACE(StringSelect,bbtk::AtomicBlackBox);
00045 BBTK_DECLARE_INPUT(In,int);
00046 BBTK_DECLARE_INPUT(In0,std::string);
00047 BBTK_DECLARE_INPUT(In1,std::string);
00048 BBTK_DECLARE_INPUT(In2,std::string);
00049 BBTK_DECLARE_INPUT(In3,std::string);
00050 BBTK_DECLARE_INPUT(In4,std::string);
00051 BBTK_DECLARE_INPUT(In5,std::string);
00052 BBTK_DECLARE_INPUT(In6,std::string);
00053 BBTK_DECLARE_INPUT(In7,std::string);
00054 BBTK_DECLARE_INPUT(In8,std::string);
00055 BBTK_DECLARE_INPUT(In9,std::string);
00056 BBTK_DECLARE_OUTPUT(Out,std::string);
00057 BBTK_PROCESS(DoProcess);
00058 void DoProcess();
00059
00060 protected:
00061 virtual void bbUserConstructor();
00062
00063 };
00064
00065
00066
00067 BBTK_BEGIN_DESCRIBE_BLACK_BOX(StringSelect,bbtk::AtomicBlackBox);
00068 BBTK_NAME("StringSelect");
00069 BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr");
00070 BBTK_CATEGORY("misc");
00071 BBTK_DESCRIPTION("Outputs the string set to the ith input Ini (In0 ... In9) according to the value of the input In, hence selects a string according to an index.");
00072 BBTK_INPUT(StringSelect,In,"Index of the string to select",int,"");
00073 BBTK_INPUT(StringSelect,In0,"String of index 0",std::string,"");
00074 BBTK_INPUT(StringSelect,In1,"String of index 1",std::string,"");
00075 BBTK_INPUT(StringSelect,In2,"String of index 2",std::string,"");
00076 BBTK_INPUT(StringSelect,In3,"String of index 3",std::string,"");
00077 BBTK_INPUT(StringSelect,In4,"String of index 4",std::string,"");
00078 BBTK_INPUT(StringSelect,In5,"String of index 4",std::string,"");
00079 BBTK_INPUT(StringSelect,In6,"String of index 6",std::string,"");
00080 BBTK_INPUT(StringSelect,In7,"String of index 7",std::string,"");
00081 BBTK_INPUT(StringSelect,In8,"String of index 8",std::string,"");
00082 BBTK_INPUT(StringSelect,In9,"String of index 9",std::string,"");
00083 BBTK_OUTPUT(StringSelect,Out,"Selected string",std::string,"");
00084 BBTK_END_DESCRIBE_BLACK_BOX(StringSelect);
00085
00086
00087 }
00088
00089
00090 #endif // __bbstdStringSelect_h_INCLUDED__
00091
00092