//=====
void WriteColumnsString::Process()
{
-
- std::cout << "MLER WriteColumnsString::Process Start " << std::endl;
-
-
std::ofstream write_fi;
- write_fi.open(bbGetInputFileName().c_str());
-
+ write_fi.open(bbGetInputFileName().c_str());
std::vector<std::string> headers = bbGetInputHeaders(); //Headers Input
bool onHeaders = bbGetInputOnHeaders();
-
-
std::vector<std::vector<std::string> > values;
-
values.push_back(bbGetInputlstData1());
values.push_back(bbGetInputlstData2());
values.push_back(bbGetInputlstData3());
values.push_back(bbGetInputlstData7());
values.push_back(bbGetInputlstData8());
values.push_back(bbGetInputlstData9());
-
std::vector<std::vector<std::string> >::iterator it;
-
- std::cout << "values size"<<values.size()<< std::endl;
for(it = values.begin() ; it != values.end() ; )
{
if((*it).empty())
it++;
}
}
- std::cout << "values size"<<values.size()<< std::endl;
-
if(write_fi.is_open())
{
if(onHeaders == true) // If onHeaders is true, the file is write with Headers.
}//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++)
}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;
-
+ bbSetOutputOutFileName(bbGetInputFileName().c_str());
}
//=====
// 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)