write_fi.open(bbGetInputFileName().c_str());
std::vector<std::string> headers = bbGetInputHeaders(); //Headers Input
+ bool onHeaders = bbGetInputOnHeaders();
+
std::vector<std::vector<std::string> > values;
if(write_fi.is_open())
{
- //Add each header input write to file
- for(unsigned int i=0 ;i< headers.size(); i++ )
+ if(onHeaders == true) // If onHeaders is true, the file is write with Headers.
{
- if(i==(headers.size()-1))
+ //Add each header input write to file
+ for(unsigned int i=0 ;i< headers.size(); i++ )
{
- write_fi << headers[i] << "\n";
- }else{
- write_fi << headers[i] << "\t";
- }
+ if(i==(headers.size()-1))
+ {
+ write_fi << headers[i] << "\n";
+ }else{
+ write_fi << headers[i] << "\t";
+ }
- }//for headersSize
+ }//for headersSize
+ }
unsigned int colSize = values[0].size();
// SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
// Here we initialize the input 'In' to 0
bbSetInputFileName("");
+ bbSetInputFileName("true");
}
//=====
//=====
BBTK_DECLARE_INPUT(FileName,std::string);
BBTK_DECLARE_INPUT(Headers,std::vector<std::string>);
+ BBTK_DECLARE_INPUT(OnHeaders,bool);
+
BBTK_DECLARE_INPUT(lstData1,std::vector<std::string> );
BBTK_DECLARE_INPUT(lstData2,std::vector<std::string> );
BBTK_INPUT(WriteColumnsString,FileName,"File name",std::string,"");
BBTK_INPUT(WriteColumnsString,Headers,"Headers of Columns",std::vector<std::string>,"");
+BBTK_INPUT(WriteColumnsString,OnHeaders,"On Headers / Off Headers",bool,"");
BBTK_INPUT(WriteColumnsString,lstData1,"vector of data",std::vector<std::string>,"");
BBTK_INPUT(WriteColumnsString,lstData2,"vector of data",std::vector<std::string>,"");