|
NGen
|
Functions | |
| std::string | join_columns (const std::vector< utils::OutputField > &columns) |
| Join the column output names with commas for a CSV header. | |
| std::string | catchment_output_header_line (bool include_id, const std::string_view variable_header, const std::string_view delimiter=DELIMITER) |
| Build the CSV header line. | |
Variables | |
| static constexpr std::string_view | DELIMITER = "," |
| std::string anonymous_namespace{CatchmentCsvOutputMgr.cpp}::catchment_output_header_line | ( | bool | include_id, |
| const std::string_view | variable_header, | ||
| const std::string_view | delimiter = DELIMITER ) |
Build the CSV header line.
When include_id is true a leading "catchment_id" column is prepended (aggregated output, where one file holds many catchments); otherwise the layout is the long-standing "Time Step,Time,<vars>". The column order is kept identical to catchment_output_data_row so header and data rows always agree.
| std::string anonymous_namespace{CatchmentCsvOutputMgr.cpp}::join_columns | ( | const std::vector< utils::OutputField > & | columns | ) |
Join the column output names with commas for a CSV header.
CSV writes only each column's output_name; the source_name, units, and other OutputField metadata are not emitted here.
References DELIMITER.
|
staticconstexpr |
Referenced by join_columns().