]> Creatis software - bbtk.git/blobdiff - packages/std/src/bbstdWriteColumnsString.cxx
Merge branch 'master' of ssh://git.creatis.insa-lyon.fr/bbtk
[bbtk.git] / packages / std / src / bbstdWriteColumnsString.cxx
diff --git a/packages/std/src/bbstdWriteColumnsString.cxx b/packages/std/src/bbstdWriteColumnsString.cxx
deleted file mode 100644 (file)
index 420d94f..0000000
+++ /dev/null
@@ -1,134 +0,0 @@
-//===== 
-// 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 "bbstdWriteColumnsString.h"
-#include "bbstdPackage.h"
-namespace bbstd
-{
-
-BBTK_ADD_BLACK_BOX_TO_PACKAGE(std,WriteColumnsString)
-BBTK_BLACK_BOX_IMPLEMENTATION(WriteColumnsString,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 WriteColumnsString::Process()
-{
-
-       std::cout << "MLER WriteColumnsString::Process Start " << std::endl;
-       
-
-       std::ofstream write_fi;
-       write_fi.open(bbGetInputFileName().c_str());
-       
-       std::vector<std::string> headers = bbGetInputHeaders(); //Headers Input
-
-       std::vector<std::vector<std::string> > values;
-
-       values.push_back(bbGetInputlstData1());
-       values.push_back(bbGetInputlstData2());
-       values.push_back(bbGetInputlstData3());
-       values.push_back(bbGetInputlstData4());
-       values.push_back(bbGetInputlstData5());
-       values.push_back(bbGetInputlstData6());
-       values.push_back(bbGetInputlstData7());
-       values.push_back(bbGetInputlstData8());
-       values.push_back(bbGetInputlstData9());
-
-       std::vector<std::vector<std::string> >::iterator it;
-
-       for(it = values.begin() ; it != values.end() ; )
-       {
-               if((*it).empty())
-               {
-                       it = values.erase(it);
-               }else
-               {
-                       it++;
-               }
-       }
-       
-       if(write_fi.is_open())
-       {       
-               //Add each header input write to file
-               for(unsigned int i=0 ;i< headers.size(); i++ )
-               {
-                       if(i==(headers.size()-1))
-                       {
-                               write_fi << headers[i] << "\n";
-                       }else{
-                               write_fi << headers[i] << "\t";
-                       }
-
-               }//for headersSize
-
-               unsigned int colSize = values[0].size();
-
-               for(unsigned int j=0;j<colSize;j++)
-               {
-                       for(unsigned int i=0;i<values.size();i++)
-                       {
-                               if(i==(values.size()-1))
-                               {
-                                       write_fi << values[i][j] << "\n";
-                               }else{
-                                       write_fi << values[i][j] << "\t";
-                               }
-
-                       }
-                       
-               }
-               
-               
-       }// if write_fi.is_open()
-       else
-       {
-               std::cout<<"No es posible abrir"<<std::endl;
-       }//else
-
-       write_fi.close();
-
-       bbSetOutputOutFileName(bbGetInputFileName().c_str());
-
-       std::cout << "MLER WriteColumnsString::End Process " << std::endl;
-  
-}
-//===== 
-// 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 WriteColumnsString::bbUserSetDefaultValues()
-{
-
-//  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX 
-//    Here we initialize the input 'In' to 0
-   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 WriteColumnsString::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 WriteColumnsString::bbUserFinalizeProcessing()
-{
-
-//  THE FINALIZATION METHOD BODY :
-//    Here does nothing 
-//    but this is where you should desallocate the internal/output pointers 
-//    if any
-  
-}
-}
-// EO namespace bbstd
-
-