![]() |
fpmas 1.6
|
#include <csv_output.h>


Protected Member Functions | |
| void | dump_csv (const std::vector< std::string > &data) |
| std::vector< std::string > | headers () |
| std::vector< std::string > | dump_fields () |
| CsvOutputBase (api::io::OutputStream &output_stream, std::pair< std::string, std::function< DataField()> >... csv_fields) | |
Additional Inherited Members | |
Public Member Functions inherited from fpmas::io::OutputBase | |
| OutputBase (api::io::OutputStream &output_stream) | |
| const api::scheduler::Job & | job () override |
Public Member Functions inherited from fpmas::api::io::Output | |
| virtual void | dump ()=0 |
| virtual const scheduler::Job & | job ()=0 |
Protected Attributes inherited from fpmas::io::OutputBase | |
| api::io::OutputStream & | output_stream |
CSV based api::output::Output implementation.
Produces very simple CSV formatted data, without any escaping.
Each field is serialized using the C++ stream output operator << applied to each DataField.
| DataField | types of data in each row |
This is a partial implementation that cannot be used directly.
|
inlineprotected |
CsvOutputBase constructor.
| output_stream | stream to which data will be dumped |
| csv_fields | pairs of type {"field_name", watcher}, where watcher is a callable object used to fetch data corresponding to "field_name" |
|
inlineprotected |
Writes data to the output_stream as CSV, considering each item in data as a CSV field.
| data | data to write |
|
inlineprotected |
Returns the CSV headers used by this output.
|
inlineprotected |
Fetch data fields using the watchers and returns the serialized data.