]> Creatis software - bbtk.git/blob - packages/std/src/bbstdReadColumnsString.h
2865058897f3905e6f2bd5ce981139ac3274cde3
[bbtk.git] / packages / std / src / bbstdReadColumnsString.h
1 //===== 
2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
3 //===== 
4 #ifndef __bbstdReadColumnsString_h_INCLUDED__
5 #define __bbstdReadColumnsString_h_INCLUDED__
6 #include "bbstd_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9
10 namespace bbstd
11 {
12
13 class bbstd_EXPORT ReadColumnsString
14  : 
15    public bbtk::AtomicBlackBox
16 {
17   BBTK_BLACK_BOX_INTERFACE(ReadColumnsString,bbtk::AtomicBlackBox);
18 //===== 
19 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
20 //===== 
21         BBTK_DECLARE_INPUT(FileName,std::string);
22         BBTK_DECLARE_INPUT(Dimension,int);      
23         
24         BBTK_DECLARE_OUTPUT(lstData1,std::vector<std::string> );
25         BBTK_DECLARE_OUTPUT(lstData2,std::vector<std::string> );
26         BBTK_DECLARE_OUTPUT(lstData3,std::vector<std::string> );
27         BBTK_DECLARE_OUTPUT(lstData4,std::vector<std::string> );
28         BBTK_DECLARE_OUTPUT(lstData5,std::vector<std::string> );
29         BBTK_DECLARE_OUTPUT(lstData6,std::vector<std::string> );
30         BBTK_DECLARE_OUTPUT(lstData7,std::vector<std::string> );
31         BBTK_DECLARE_OUTPUT(lstData8,std::vector<std::string> );
32         BBTK_DECLARE_OUTPUT(lstData9,std::vector<std::string> );
33
34         BBTK_PROCESS(Process);
35   void Process();
36 //===== 
37 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
38 //===== 
39 };
40
41 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ReadColumnsString,bbtk::AtomicBlackBox);
42         
43         BBTK_NAME("ReadColumnsString");
44         BBTK_AUTHOR("Info-Dev");
45         BBTK_DESCRIPTION("Read Columns from a text file");
46         BBTK_CATEGORY("read/write");
47         BBTK_INPUT(ReadColumnsString,FileName,"File name of Points",std::string,"");
48         BBTK_INPUT(ReadColumnsString,Dimension,"(default 1) - The number of columns of the file",int,"");
49         
50         BBTK_OUTPUT(ReadColumnsString,lstData1,"vector of data",std::vector<std::string>,"");
51         BBTK_OUTPUT(ReadColumnsString,lstData2,"vector of data",std::vector<std::string>,"");
52         BBTK_OUTPUT(ReadColumnsString,lstData3,"vector of data",std::vector<std::string>,"");
53         BBTK_OUTPUT(ReadColumnsString,lstData4,"vector of data",std::vector<std::string>,"");
54         BBTK_OUTPUT(ReadColumnsString,lstData5,"vector of data",std::vector<std::string>,"");
55         BBTK_OUTPUT(ReadColumnsString,lstData6,"vector of data",std::vector<std::string>,"");
56         BBTK_OUTPUT(ReadColumnsString,lstData7,"vector of data",std::vector<std::string>,"");
57         BBTK_OUTPUT(ReadColumnsString,lstData8,"vector of data",std::vector<std::string>,"");
58         BBTK_OUTPUT(ReadColumnsString,lstData9,"vector of data",std::vector<std::string>,"");
59         
60         
61         
62 BBTK_END_DESCRIBE_BLACK_BOX(ReadColumnsString);
63 //===== 
64 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
65 //===== 
66 }
67 // EO namespace bbstd
68
69 #endif // __bbstdReadColumnsString_h_INCLUDED__
70