]> Creatis software - bbtk.git/commitdiff
no message
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Thu, 28 Apr 2011 09:27:00 +0000 (09:27 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Thu, 28 Apr 2011 09:27:00 +0000 (09:27 +0000)
packages/std/src/bbstdReadColumnsDouble.cxx [new file with mode: 0644]
packages/std/src/bbstdReadColumnsDouble.h [new file with mode: 0644]
packages/std/src/bbstdReadColumnsInt.cxx [new file with mode: 0644]
packages/std/src/bbstdReadColumnsInt.h [new file with mode: 0644]
packages/std/src/bbstdReadColumnsString.cxx [new file with mode: 0644]
packages/std/src/bbstdReadColumnsString.h [new file with mode: 0644]
packages/std/src/bbstdStringVectorToNumericalVector.h

diff --git a/packages/std/src/bbstdReadColumnsDouble.cxx b/packages/std/src/bbstdReadColumnsDouble.cxx
new file mode 100644 (file)
index 0000000..0156e70
--- /dev/null
@@ -0,0 +1,101 @@
+//===== 
+// 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)
+//===== 
+#include "bbstdReadColumnsDouble.h"
+#include "bbstdPackage.h"
+namespace bbstd
+{
+
+BBTK_ADD_BLACK_BOX_TO_PACKAGE(std,ReadColumnsDouble)
+BBTK_BLACK_BOX_IMPLEMENTATION(ReadColumnsDouble,bbtk::AtomicBlackBox);
+//===== 
+// 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)
+//===== 
+void ReadColumnsDouble::Process()
+{
+       printf("EED ReadColumnsDouble::Process start \n");
+       
+       std::vector< std::vector<double> * > tlst;
+       
+       int i;
+       for( i=0 ;  i<bbGetInputDimension() ; i++)
+       {
+               tlst.push_back( new std::vector<double> );
+       }       
+       
+       int numberOfLines = 0;
+       char tmpValue[50];
+       std::vector<double> *vecData;
+       FILE *ff1 = fopen( bbGetInputFileName().c_str() , "r+" );
+       if (ff1!=NULL)
+       {
+               while (!feof(ff1))
+               {
+                       for( i=0 ;  i<bbGetInputDimension() ; i++)
+                       {
+                               fscanf(ff1,"%s",tmpValue);
+                               vecData=tlst[i];
+                               vecData->push_back( atof(tmpValue) );
+                       }       
+                       numberOfLines++;                        
+               }       
+               fclose(ff1);
+       } else {   // else ff1
+               printf("bbcreaMaracasVisuReadAxisTree3D::Process  ...Error... reading file InputFileName_Points>%s", bbGetInputFileName().c_str() );
+       } //ff1 
+       
+       i=1; if (i<=bbGetInputDimension()) { bbSetOutputlstData1( *(tlst[i-1]) ); }
+       i=2; if (i<=bbGetInputDimension()) { bbSetOutputlstData2( *(tlst[i-1]) ); }
+       i=3; if (i<=bbGetInputDimension()) { bbSetOutputlstData3( *(tlst[i-1]) ); }
+       i=4; if (i<=bbGetInputDimension()) { bbSetOutputlstData4( *(tlst[i-1]) ); }
+       i=5; if (i<=bbGetInputDimension()) { bbSetOutputlstData5( *(tlst[i-1]) ); }
+       i=6; if (i<=bbGetInputDimension()) { bbSetOutputlstData6( *(tlst[i-1]) ); }
+       i=7; if (i<=bbGetInputDimension()) { bbSetOutputlstData7( *(tlst[i-1]) ); }
+       i=8; if (i<=bbGetInputDimension()) { bbSetOutputlstData8( *(tlst[i-1]) ); }
+       i=9; if (i<=bbGetInputDimension()) { bbSetOutputlstData9( *(tlst[i-1]) ); }
+       
+       printf("EED ReadColumnsDouble::Process end \n");
+       
+       
+}
+//===== 
+// 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)
+//===== 
+void ReadColumnsDouble::bbUserSetDefaultValues()
+{
+
+//  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX 
+//    Here we initialize the input 'In' to 0
+       bbSetInputDimension(1); 
+       bbSetInputFileName(""); 
+  
+}
+//===== 
+// 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)
+//===== 
+void ReadColumnsDouble::bbUserInitializeProcessing()
+{
+
+//  THE INITIALIZATION METHOD BODY :
+//    Here does nothing 
+//    but this is where you should allocate the internal/output pointers 
+//    if any 
+
+  
+}
+//===== 
+// 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)
+//===== 
+void ReadColumnsDouble::bbUserFinalizeProcessing()
+{
+
+//  THE FINALIZATION METHOD BODY :
+//    Here does nothing 
+//    but this is where you should desallocate the internal/output pointers 
+//    if any
+  
+}
+}
+// EO namespace bbstd
+
+
diff --git a/packages/std/src/bbstdReadColumnsDouble.h b/packages/std/src/bbstdReadColumnsDouble.h
new file mode 100644 (file)
index 0000000..27d65c4
--- /dev/null
@@ -0,0 +1,66 @@
+//===== 
+// 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)
+//===== 
+#ifndef __bbstdReadColumnsDouble_h_INCLUDED__
+#define __bbstdReadColumnsDouble_h_INCLUDED__
+#include "bbstd_EXPORT.h"
+#include "bbtkAtomicBlackBox.h"
+#include "iostream"
+
+
+namespace bbstd
+{
+
+class bbstd_EXPORT ReadColumnsDouble
+ : 
+   public bbtk::AtomicBlackBox
+{
+  BBTK_BLACK_BOX_INTERFACE(ReadColumnsDouble,bbtk::AtomicBlackBox);
+//===== 
+// 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)
+//===== 
+       BBTK_DECLARE_INPUT(FileName,std::string);
+       BBTK_DECLARE_INPUT(Dimension,int);      
+       
+       BBTK_DECLARE_OUTPUT(lstData1,std::vector<double> );
+       BBTK_DECLARE_OUTPUT(lstData2,std::vector<double> );
+       BBTK_DECLARE_OUTPUT(lstData3,std::vector<double> );
+       BBTK_DECLARE_OUTPUT(lstData4,std::vector<double> );
+       BBTK_DECLARE_OUTPUT(lstData5,std::vector<double> );
+       BBTK_DECLARE_OUTPUT(lstData6,std::vector<double> );
+       BBTK_DECLARE_OUTPUT(lstData7,std::vector<double> );
+       BBTK_DECLARE_OUTPUT(lstData8,std::vector<double> );
+       BBTK_DECLARE_OUTPUT(lstData9,std::vector<double> );
+       BBTK_PROCESS(Process);
+  void Process();
+//===== 
+// 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)
+//===== 
+};
+
+BBTK_BEGIN_DESCRIBE_BLACK_BOX(ReadColumnsDouble,bbtk::AtomicBlackBox);
+       BBTK_NAME("ReadColumnsDouble");
+       BBTK_AUTHOR("Info-Dev");
+       BBTK_DESCRIPTION("Read Columns from a text file");
+       BBTK_CATEGORY("read/write");
+       BBTK_INPUT(ReadColumnsDouble,FileName,"File name of Points",std::string,"");
+       BBTK_INPUT(ReadColumnsDouble,Dimension,"(default 1) - The number of columns of the file",int,"");
+       
+       BBTK_OUTPUT(ReadColumnsDouble,lstData1,"vector of data",std::vector<double>,"");
+       BBTK_OUTPUT(ReadColumnsDouble,lstData2,"vector of data",std::vector<double>,"");
+       BBTK_OUTPUT(ReadColumnsDouble,lstData3,"vector of data",std::vector<double>,"");
+       BBTK_OUTPUT(ReadColumnsDouble,lstData4,"vector of data",std::vector<double>,"");
+       BBTK_OUTPUT(ReadColumnsDouble,lstData5,"vector of data",std::vector<double>,"");
+       BBTK_OUTPUT(ReadColumnsDouble,lstData6,"vector of data",std::vector<double>,"");
+       BBTK_OUTPUT(ReadColumnsDouble,lstData7,"vector of data",std::vector<double>,"");
+       BBTK_OUTPUT(ReadColumnsDouble,lstData8,"vector of data",std::vector<double>,"");
+       BBTK_OUTPUT(ReadColumnsDouble,lstData9,"vector of data",std::vector<double>,"");
+BBTK_END_DESCRIBE_BLACK_BOX(ReadColumnsDouble);
+//===== 
+// 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)
+//===== 
+}
+// EO namespace bbstd
+
+#endif // __bbstdReadColumnsDouble_h_INCLUDED__
+
diff --git a/packages/std/src/bbstdReadColumnsInt.cxx b/packages/std/src/bbstdReadColumnsInt.cxx
new file mode 100644 (file)
index 0000000..c2e6308
--- /dev/null
@@ -0,0 +1,100 @@
+//===== 
+// 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)
+//===== 
+#include "bbstdReadColumnsInt.h"
+#include "bbstdPackage.h"
+namespace bbstd
+{
+
+BBTK_ADD_BLACK_BOX_TO_PACKAGE(std,ReadColumnsInt)
+BBTK_BLACK_BOX_IMPLEMENTATION(ReadColumnsInt,bbtk::AtomicBlackBox);
+//===== 
+// 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)
+//===== 
+void ReadColumnsInt::Process()
+{
+       printf("EED ReadColumnsDouble::Process start \n");
+       
+       std::vector< std::vector<int> * > tlst;
+       
+       int i;
+       for( i=0 ;  i<bbGetInputDimension() ; i++)
+       {
+               tlst.push_back( new std::vector<int> );
+       }       
+       
+       int numberOfLines = 0;
+       char tmpValue[50];
+       std::vector<int> *vecData;
+       FILE *ff1 = fopen( bbGetInputFileName().c_str() , "r+" );
+       if (ff1!=NULL)
+       {
+               while (!feof(ff1))
+               {
+                       for( i=0 ;  i<bbGetInputDimension() ; i++)
+                       {
+                               fscanf(ff1,"%s",tmpValue);
+                               vecData=tlst[i];
+                               vecData->push_back( atoi(tmpValue) );
+                       }       
+                       numberOfLines++;                        
+               }       
+               fclose(ff1);
+       } else {   // else ff1
+               printf("bbcreaMaracasVisuReadAxisTree3D::Process  ...Error... reading file InputFileName_Points>%s", bbGetInputFileName().c_str() );
+       } //ff1 
+       
+       i=1; if (i<=bbGetInputDimension()) { bbSetOutputlstData1( *(tlst[i-1]) ); }
+       i=2; if (i<=bbGetInputDimension()) { bbSetOutputlstData2( *(tlst[i-1]) ); }
+       i=3; if (i<=bbGetInputDimension()) { bbSetOutputlstData3( *(tlst[i-1]) ); }
+       i=4; if (i<=bbGetInputDimension()) { bbSetOutputlstData4( *(tlst[i-1]) ); }
+       i=5; if (i<=bbGetInputDimension()) { bbSetOutputlstData5( *(tlst[i-1]) ); }
+       i=6; if (i<=bbGetInputDimension()) { bbSetOutputlstData6( *(tlst[i-1]) ); }
+       i=7; if (i<=bbGetInputDimension()) { bbSetOutputlstData7( *(tlst[i-1]) ); }
+       i=8; if (i<=bbGetInputDimension()) { bbSetOutputlstData8( *(tlst[i-1]) ); }
+       i=9; if (i<=bbGetInputDimension()) { bbSetOutputlstData9( *(tlst[i-1]) ); }
+       
+       printf("EED ReadColumnsDouble::Process end \n");
+       
+}
+//===== 
+// 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)
+//===== 
+void ReadColumnsInt::bbUserSetDefaultValues()
+{
+
+//  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX 
+//    Here we initialize the input 'In' to 0
+       bbSetInputDimension(1); 
+       bbSetInputFileName(""); 
+  
+}
+//===== 
+// 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)
+//===== 
+void ReadColumnsInt::bbUserInitializeProcessing()
+{
+
+//  THE INITIALIZATION METHOD BODY :
+//    Here does nothing 
+//    but this is where you should allocate the internal/output pointers 
+//    if any 
+
+  
+}
+//===== 
+// 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)
+//===== 
+void ReadColumnsInt::bbUserFinalizeProcessing()
+{
+
+//  THE FINALIZATION METHOD BODY :
+//    Here does nothing 
+//    but this is where you should desallocate the internal/output pointers 
+//    if any
+  
+}
+}
+// EO namespace bbstd
+
+
diff --git a/packages/std/src/bbstdReadColumnsInt.h b/packages/std/src/bbstdReadColumnsInt.h
new file mode 100644 (file)
index 0000000..2b61f2e
--- /dev/null
@@ -0,0 +1,65 @@
+//===== 
+// 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)
+//===== 
+#ifndef __bbstdReadColumnsInt_h_INCLUDED__
+#define __bbstdReadColumnsInt_h_INCLUDED__
+#include "bbstd_EXPORT.h"
+#include "bbtkAtomicBlackBox.h"
+#include "iostream"
+
+namespace bbstd
+{
+
+class bbstd_EXPORT ReadColumnsInt
+ : 
+   public bbtk::AtomicBlackBox
+{
+  BBTK_BLACK_BOX_INTERFACE(ReadColumnsInt,bbtk::AtomicBlackBox);
+//===== 
+// 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)
+//===== 
+       BBTK_DECLARE_INPUT(FileName,std::string);
+       BBTK_DECLARE_INPUT(Dimension,int);      
+       
+       BBTK_DECLARE_OUTPUT(lstData1,std::vector<int> );
+       BBTK_DECLARE_OUTPUT(lstData2,std::vector<int> );
+       BBTK_DECLARE_OUTPUT(lstData3,std::vector<int> );
+       BBTK_DECLARE_OUTPUT(lstData4,std::vector<int> );
+       BBTK_DECLARE_OUTPUT(lstData5,std::vector<int> );
+       BBTK_DECLARE_OUTPUT(lstData6,std::vector<int> );
+       BBTK_DECLARE_OUTPUT(lstData7,std::vector<int> );
+       BBTK_DECLARE_OUTPUT(lstData8,std::vector<int> );
+       BBTK_DECLARE_OUTPUT(lstData9,std::vector<int> );
+       BBTK_PROCESS(Process);
+  void Process();
+//===== 
+// 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)
+//===== 
+};
+
+BBTK_BEGIN_DESCRIBE_BLACK_BOX(ReadColumnsInt,bbtk::AtomicBlackBox);
+       BBTK_NAME("ReadColumnsInt");
+       BBTK_AUTHOR("Info-Dev");
+       BBTK_DESCRIPTION("Read Columns from a text file");
+       BBTK_CATEGORY("read/write");
+       BBTK_INPUT(ReadColumnsInt,FileName,"File name of Points",std::string,"");
+       BBTK_INPUT(ReadColumnsInt,Dimension,"(default 1) - The number of columns of the file",int,"");
+       
+       BBTK_OUTPUT(ReadColumnsInt,lstData1,"vector of data",std::vector<int>,"");
+       BBTK_OUTPUT(ReadColumnsInt,lstData2,"vector of data",std::vector<int>,"");
+       BBTK_OUTPUT(ReadColumnsInt,lstData3,"vector of data",std::vector<int>,"");
+       BBTK_OUTPUT(ReadColumnsInt,lstData4,"vector of data",std::vector<int>,"");
+       BBTK_OUTPUT(ReadColumnsInt,lstData5,"vector of data",std::vector<int>,"");
+       BBTK_OUTPUT(ReadColumnsInt,lstData6,"vector of data",std::vector<int>,"");
+       BBTK_OUTPUT(ReadColumnsInt,lstData7,"vector of data",std::vector<int>,"");
+       BBTK_OUTPUT(ReadColumnsInt,lstData8,"vector of data",std::vector<int>,"");
+       BBTK_OUTPUT(ReadColumnsInt,lstData9,"vector of data",std::vector<int>,"");
+       BBTK_END_DESCRIBE_BLACK_BOX(ReadColumnsInt);
+//===== 
+// 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)
+//===== 
+}
+// EO namespace bbstd
+
+#endif // __bbstdReadColumnsInt_h_INCLUDED__
+
diff --git a/packages/std/src/bbstdReadColumnsString.cxx b/packages/std/src/bbstdReadColumnsString.cxx
new file mode 100644 (file)
index 0000000..f6cd0a7
--- /dev/null
@@ -0,0 +1,105 @@
+//===== 
+// 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)
+//===== 
+#include "bbstdReadColumnsString.h"
+#include "bbstdPackage.h"
+
+
+#include<vector>
+
+namespace bbstd
+{
+
+BBTK_ADD_BLACK_BOX_TO_PACKAGE(std,ReadColumnsString)
+BBTK_BLACK_BOX_IMPLEMENTATION(ReadColumnsString,bbtk::AtomicBlackBox);
+//===== 
+// 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)
+//===== 
+void ReadColumnsString::Process()
+{
+
+       printf("EED ReadColumnsString::Process start \n");
+       
+       std::vector< std::vector<std::string> * > tlst;
+       
+       int i;
+       for( i=0 ;  i<bbGetInputDimension() ; i++)
+       {
+               tlst.push_back( new std::vector<std::string> );
+       }       
+       
+       int numberOfLines = 0;
+       char tmpValue[50];
+       std::vector<std::string> *vecData;
+       FILE *ff1 = fopen( bbGetInputFileName().c_str() , "r+" );
+       if (ff1!=NULL)
+       {
+               while (!feof(ff1))
+               {
+                       for( i=0 ;  i<bbGetInputDimension() ; i++)
+                       {
+                               fscanf(ff1,"%s",tmpValue);
+                               vecData=tlst[i];
+                               vecData->push_back( tmpValue );
+                       }       
+                       numberOfLines++;                        
+               }       
+               fclose(ff1);
+       } else {   // else ff1
+               printf("bbcreaMaracasVisuReadAxisTree3D::Process  ...Error... reading file InputFileName_Points>%s", bbGetInputFileName().c_str() );
+       } //ff1 
+       
+       i=1; if (i<=bbGetInputDimension()) { bbSetOutputlstData1( *(tlst[i-1]) ); }
+       i=2; if (i<=bbGetInputDimension()) { bbSetOutputlstData2( *(tlst[i-1]) ); }
+       i=3; if (i<=bbGetInputDimension()) { bbSetOutputlstData3( *(tlst[i-1]) ); }
+       i=4; if (i<=bbGetInputDimension()) { bbSetOutputlstData4( *(tlst[i-1]) ); }
+       i=5; if (i<=bbGetInputDimension()) { bbSetOutputlstData5( *(tlst[i-1]) ); }
+       i=6; if (i<=bbGetInputDimension()) { bbSetOutputlstData6( *(tlst[i-1]) ); }
+       i=7; if (i<=bbGetInputDimension()) { bbSetOutputlstData7( *(tlst[i-1]) ); }
+       i=8; if (i<=bbGetInputDimension()) { bbSetOutputlstData8( *(tlst[i-1]) ); }
+       i=9; if (i<=bbGetInputDimension()) { bbSetOutputlstData9( *(tlst[i-1]) ); }
+       
+       printf("EED ReadColumnsString::Process end \n");
+       
+}
+//===== 
+// 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)
+//===== 
+void ReadColumnsString::bbUserSetDefaultValues()
+{
+
+//  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX 
+//    Here we initialize the input 'In' to 0
+       bbSetInputDimension(1); 
+       bbSetInputFileName(""); 
+  
+}
+//===== 
+// 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)
+//===== 
+void ReadColumnsString::bbUserInitializeProcessing()
+{
+
+//  THE INITIALIZATION METHOD BODY :
+//    Here does nothing 
+//    but this is where you should allocate the internal/output pointers 
+//    if any 
+
+  
+}
+//===== 
+// 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)
+//===== 
+void ReadColumnsString::bbUserFinalizeProcessing()
+{
+
+//  THE FINALIZATION METHOD BODY :
+//    Here does nothing 
+//    but this is where you should desallocate the internal/output pointers 
+//    if any
+  
+}
+}
+// EO namespace bbstd
+
+
diff --git a/packages/std/src/bbstdReadColumnsString.h b/packages/std/src/bbstdReadColumnsString.h
new file mode 100644 (file)
index 0000000..2865058
--- /dev/null
@@ -0,0 +1,70 @@
+//===== 
+// 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)
+//===== 
+#ifndef __bbstdReadColumnsString_h_INCLUDED__
+#define __bbstdReadColumnsString_h_INCLUDED__
+#include "bbstd_EXPORT.h"
+#include "bbtkAtomicBlackBox.h"
+#include "iostream"
+
+namespace bbstd
+{
+
+class bbstd_EXPORT ReadColumnsString
+ : 
+   public bbtk::AtomicBlackBox
+{
+  BBTK_BLACK_BOX_INTERFACE(ReadColumnsString,bbtk::AtomicBlackBox);
+//===== 
+// 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)
+//===== 
+       BBTK_DECLARE_INPUT(FileName,std::string);
+       BBTK_DECLARE_INPUT(Dimension,int);      
+       
+       BBTK_DECLARE_OUTPUT(lstData1,std::vector<std::string> );
+       BBTK_DECLARE_OUTPUT(lstData2,std::vector<std::string> );
+       BBTK_DECLARE_OUTPUT(lstData3,std::vector<std::string> );
+       BBTK_DECLARE_OUTPUT(lstData4,std::vector<std::string> );
+       BBTK_DECLARE_OUTPUT(lstData5,std::vector<std::string> );
+       BBTK_DECLARE_OUTPUT(lstData6,std::vector<std::string> );
+       BBTK_DECLARE_OUTPUT(lstData7,std::vector<std::string> );
+       BBTK_DECLARE_OUTPUT(lstData8,std::vector<std::string> );
+       BBTK_DECLARE_OUTPUT(lstData9,std::vector<std::string> );
+
+       BBTK_PROCESS(Process);
+  void Process();
+//===== 
+// 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)
+//===== 
+};
+
+BBTK_BEGIN_DESCRIBE_BLACK_BOX(ReadColumnsString,bbtk::AtomicBlackBox);
+       
+       BBTK_NAME("ReadColumnsString");
+       BBTK_AUTHOR("Info-Dev");
+       BBTK_DESCRIPTION("Read Columns from a text file");
+       BBTK_CATEGORY("read/write");
+       BBTK_INPUT(ReadColumnsString,FileName,"File name of Points",std::string,"");
+       BBTK_INPUT(ReadColumnsString,Dimension,"(default 1) - The number of columns of the file",int,"");
+       
+       BBTK_OUTPUT(ReadColumnsString,lstData1,"vector of data",std::vector<std::string>,"");
+       BBTK_OUTPUT(ReadColumnsString,lstData2,"vector of data",std::vector<std::string>,"");
+       BBTK_OUTPUT(ReadColumnsString,lstData3,"vector of data",std::vector<std::string>,"");
+       BBTK_OUTPUT(ReadColumnsString,lstData4,"vector of data",std::vector<std::string>,"");
+       BBTK_OUTPUT(ReadColumnsString,lstData5,"vector of data",std::vector<std::string>,"");
+       BBTK_OUTPUT(ReadColumnsString,lstData6,"vector of data",std::vector<std::string>,"");
+       BBTK_OUTPUT(ReadColumnsString,lstData7,"vector of data",std::vector<std::string>,"");
+       BBTK_OUTPUT(ReadColumnsString,lstData8,"vector of data",std::vector<std::string>,"");
+       BBTK_OUTPUT(ReadColumnsString,lstData9,"vector of data",std::vector<std::string>,"");
+       
+       
+       
+BBTK_END_DESCRIBE_BLACK_BOX(ReadColumnsString);
+//===== 
+// 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)
+//===== 
+}
+// EO namespace bbstd
+
+#endif // __bbstdReadColumnsString_h_INCLUDED__
+
index 626c370694b7818690707f40a9bf21554e5de6a9..a335c698fb26f6d4de791a8bebc2bf7b3241fa82 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbstdStringVectorToNumericalVector.h,v $
   Language:  C++
-  Date:      $Date: 2011/03/01 13:12:07 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2011/04/28 09:27:00 $
+  Version:   $Revision: 1.3 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -74,7 +74,7 @@ namespace bbstd
   template <class T>
   void StringVectorToNumericalVector<T>::DoIt()
   {
-    //  std::cout << "StringVectorToNumericalVector<"<<bbtk::TypeName<T>()<<">::DoIt()"<<std::endl;
+      std::cout << "StringVectorToNumericalVector<"<<bbtk::TypeName<T>()<<">::DoIt()  start "<<std::endl;
     
     typedef T type; 
 
@@ -90,12 +90,15 @@ namespace bbstd
     // bbmOutputOut.clear();   // ? JPR
  
     // just to see // JPR      
-    int lgrOut=this->bbGetOutputOut().size();  
-    for (int j=0; j<lgrOut; j++)
-    {
-       std::cout << this->bbGetOutputOut()[j] << std::endl;    
-    }
+//EED    int lgrOut=this->bbGetOutputOut().size();  
+//EED    for (int j=0; j<lgrOut; j++)
+//EED    {
+//EED       std::cout << this->bbGetOutputOut()[j] << std::endl;    
+//EED    }
     // end just to see // JPR  
+         
+      std::cout << "StringVectorToNumericalVector<"<<bbtk::TypeName<T>()<<">::DoIt()  end "<<std::endl;
+         
   }
   //=================================================================