1 #ifndef teca_table_writer_h
2 #define teca_table_writer_h
4 #include "teca_shared_object.h"
5 #include "teca_algorithm.h"
6 #include "teca_metadata.h"
39 TECA_ALGORITHM_PROPERTY(std::string, file_name)
42 TECA_ALGORITHM_PROPERTY(std::string, row_dim_name)
46 TECA_GET_ALGORITHM_PROPERTIES_DESCRIPTION()
47 TECA_SET_ALGORITHM_PROPERTIES()
55 enum {format_auto, format_csv, format_bin, format_xlsx, format_netcdf};
56 TECA_ALGORITHM_PROPERTY(
int, output_format)
57 void set_output_format_auto(){ this->set_output_format(format_auto); }
58 void set_output_format_csv(){ this->set_output_format(format_csv); }
59 void set_output_format_bin(){ this->set_output_format(format_bin); }
60 void set_output_format_xlsx(){ this->set_output_format(format_xlsx); }
61 void set_output_format_netcdf(){ this->set_output_format(format_netcdf); }
67 const_p_teca_dataset execute(
69 const std::vector<const_p_teca_dataset> &input_data,
73 const std::vector<teca_metadata> &input_md)
override;
76 std::string index_request_key;
77 std::string file_name;
78 std::string row_dim_name;