2012-02-06 16:44:09 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the Owl Positioning System (OwlPS).
|
|
|
|
* OwlPS is a project of the University of Franche-Comté
|
|
|
|
* (Université de Franche-Comté), France.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2010-03-08 17:36:16 +01:00
|
|
|
#include "outputcsv.hh"
|
2011-04-05 11:52:06 +02:00
|
|
|
#include "resultlist.hh"
|
2010-03-08 17:36:16 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-05 14:45:27 +02:00
|
|
|
void OutputCSV::write(const Result &result)
|
2010-03-08 17:36:16 +01:00
|
|
|
{
|
2011-04-05 14:45:27 +02:00
|
|
|
file.write_text(result.to_csv() + '\n') ;
|
2011-04-05 11:52:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-04-05 14:45:27 +02:00
|
|
|
void OutputCSV::write(const ResultList &results)
|
2011-04-05 11:52:06 +02:00
|
|
|
{
|
2011-06-29 17:36:59 +02:00
|
|
|
if (! results.empty())
|
|
|
|
file.write_text(results.to_csv() + '\n') ;
|
2010-03-08 17:36:16 +01:00
|
|
|
}
|