1 #ifndef teca_table_writer_h
2 #define teca_table_writer_h
5 #include "teca_algorithm.h"
6 #include "teca_metadata.h"
40 TECA_ALGORITHM_PROPERTY(std::
string, file_name)
43 TECA_ALGORITHM_PROPERTY(std::
string, row_dim_name)
47 TECA_GET_ALGORITHM_PROPERTIES_DESCRIPTION()
48 TECA_SET_ALGORITHM_PROPERTIES()
56 enum {format_auto, format_csv, format_bin, format_xlsx, format_netcdf};
57 TECA_ALGORITHM_PROPERTY(
int, output_format)
58 void set_output_format_auto(){ this->set_output_format(format_auto); }
59 void set_output_format_csv(){ this->set_output_format(format_csv); }
60 void set_output_format_bin(){ this->set_output_format(format_bin); }
61 void set_output_format_xlsx(){ this->set_output_format(format_xlsx); }
62 void set_output_format_netcdf(){ this->set_output_format(format_netcdf); }
68 const_p_teca_dataset execute(
70 const std::vector<const_p_teca_dataset> &input_data,
74 const std::vector<teca_metadata> &input_md)
override;
77 std::string index_request_key;
78 std::string file_name;
79 std::string row_dim_name;