]> Creatis software - bbtk.git/blob - packages/std/src/bbstdStringSelect.h
8bafeba58e4a7fef2ec57c77cff7b3b5ea150254
[bbtk.git] / packages / std / src / bbstdStringSelect.h
1 #ifndef __bbstdStringSelect_h_INCLUDED__
2 #define __bbstdStringSelect_h_INCLUDED__
3
4 #include "bbtkAtomicBlackBox.h"
5
6 namespace bbstd
7 {
8   //=======================================================================
9   class /*BBTK_EXPORT*/ StringSelect
10     : 
11     public bbtk::AtomicBlackBox
12   {
13     BBTK_USER_BLACK_BOX_INTERFACE(StringSelect,bbtk::AtomicBlackBox);
14       BBTK_DECLARE_INPUT(In,int);
15       BBTK_DECLARE_INPUT(In0,std::string);
16       BBTK_DECLARE_INPUT(In1,std::string);
17       BBTK_DECLARE_INPUT(In2,std::string);
18       BBTK_DECLARE_INPUT(In3,std::string);
19       BBTK_DECLARE_INPUT(In4,std::string);
20       BBTK_DECLARE_INPUT(In5,std::string);
21       BBTK_DECLARE_INPUT(In6,std::string);
22       BBTK_DECLARE_INPUT(In7,std::string);
23       BBTK_DECLARE_INPUT(In8,std::string);
24       BBTK_DECLARE_INPUT(In9,std::string);
25       BBTK_DECLARE_OUTPUT(Out,std::string);
26     BBTK_PROCESS(DoProcess);
27     void DoProcess();
28
29   protected:
30     virtual void bbUserConstructor();
31
32   };
33   //=======================================================================
34
35   //=======================================================================
36   BBTK_BEGIN_DESCRIBE_BLACK_BOX(StringSelect,bbtk::AtomicBlackBox);
37   BBTK_NAME("StringSelect");
38   BBTK_AUTHOR("eduardo.davila@creatis.insa-lyon.fr");
39   BBTK_CATEGORY("misc");
40   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.");
41   BBTK_INPUT(StringSelect,In,"Index of the string to select",int,"");
42   BBTK_INPUT(StringSelect,In0,"String of index 0",std::string,"");
43   BBTK_INPUT(StringSelect,In1,"String of index 1",std::string,"");
44   BBTK_INPUT(StringSelect,In2,"String of index 2",std::string,"");
45   BBTK_INPUT(StringSelect,In3,"String of index 3",std::string,"");
46   BBTK_INPUT(StringSelect,In4,"String of index 4",std::string,"");
47   BBTK_INPUT(StringSelect,In5,"String of index 4",std::string,"");
48   BBTK_INPUT(StringSelect,In6,"String of index 6",std::string,"");
49   BBTK_INPUT(StringSelect,In7,"String of index 7",std::string,"");
50   BBTK_INPUT(StringSelect,In8,"String of index 8",std::string,"");
51   BBTK_INPUT(StringSelect,In9,"String of index 9",std::string,"");
52   BBTK_OUTPUT(StringSelect,Out,"Selected string",std::string,"");
53   BBTK_END_DESCRIBE_BLACK_BOX(StringSelect);
54   //=======================================================================
55
56 }
57 // EO namespace bbstd
58
59 #endif //  __bbstdStringSelect_h_INCLUDED__
60
61