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


Public Member Functions | |
| CsvOutput (api::io::OutputStream &output_stream, std::pair< std::string, std::function< DataField()> >... csv_fields) | |
| void | dump () override |
Public Member Functions inherited from fpmas::io::OutputBase | |
| OutputBase (api::io::OutputStream &output_stream) | |
| const api::scheduler::Job & | job () override |
| virtual void | dump ()=0 |
| virtual const scheduler::Job & | job ()=0 |
Additional Inherited Members | |
Protected Member Functions inherited from fpmas::io::CsvOutputBase< DataField... > | |
| 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) | |
Protected Attributes inherited from fpmas::io::OutputBase | |
| api::io::OutputStream & | output_stream |
Basic api::output::Output implementation that dumps CSV data to an output stream.
| DataField | types of data in each row |
|
inline |
CsvOutputBase constructor.
Writes CSV headers to the output_stream.
| 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". See examples for concrete use cases. |
|
inlineoverridevirtual |
Dumps data fields to the output_stream.
Each data field is dynamically fetched using the corresponding watcher provided in the constructor.
Implements fpmas::api::io::Output.