]> Creatis software - bbtk.git/blob - packages/std/src/bbstdReadVectorFromFile.h
65580a32002d65ddd0d3816d21a2cdf806c40830
[bbtk.git] / packages / std / src / bbstdReadVectorFromFile.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 __bbstdReadVectorFromFile_h_INCLUDED__
5 #define __bbstdReadVectorFromFile_h_INCLUDED__
6 #include "bbstd_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9
10
11 namespace bbstd
12 {
13
14 class bbstd_EXPORT ReadVectorFromFile
15  : 
16    public bbtk::AtomicBlackBox
17 {
18   BBTK_BLACK_BOX_INTERFACE(ReadVectorFromFile,bbtk::AtomicBlackBox);
19 //===== 
20 // 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)
21 //===== 
22         BBTK_DECLARE_INPUT(FileName,std::string);
23         BBTK_DECLARE_OUTPUT(Out,std::vector <std::vector<double> >);
24         BBTK_DECLARE_INPUT(LineLength,int);     
25         BBTK_PROCESS(Process);
26   void Process();
27 //===== 
28 // 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)
29 //===== 
30 };
31
32 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ReadVectorFromFile,bbtk::AtomicBlackBox);
33         BBTK_NAME("ReadVectorFromFile");
34         BBTK_AUTHOR("jpr");
35         BBTK_DESCRIPTION("Read any Vector from a text file");
36         BBTK_CATEGORY("read/write");
37         BBTK_INPUT(ReadVectorFromFile,FileName,"3D Points file name",std::string,"");
38         BBTK_INPUT(ReadVectorFromFile,LineLength,"(default 1) - The number of columns of the file",int,"");     
39         BBTK_OUTPUT(ReadVectorFromFile,Out,"vector of data",std::vector< std::vector <double> >,"");
40
41 BBTK_END_DESCRIBE_BLACK_BOX(ReadVectorFromFile);
42 //===== 
43 // 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)
44 //===== 
45
46 }
47 // EO namespace bbstd
48
49 #endif // __bbstdReadVectorFromFile_h_INCLUDED__
50