GridFormat 0.2.1
I/O-Library for grid-like data structures
|
Abstract base class for time series file writers.
#include <writer.hpp>
Public Member Functions | |
TimeSeriesGridWriter (TimeSeriesGridWriter &&)=default | |
TimeSeriesGridWriter (const TimeSeriesGridWriter &)=delete | |
TimeSeriesGridWriter & | operator= (TimeSeriesGridWriter &&)=default |
TimeSeriesGridWriter & | operator= (const TimeSeriesGridWriter &)=delete |
TimeSeriesGridWriter (const Grid &grid, std::optional< WriterOptions > opts) | |
std::string | write (double t) |
Public Member Functions inherited from GridFormat::GridWriterBase< Grid > | |
GridWriterBase (const Grid &grid, std::optional< WriterOptions > opts) | |
void | set_meta_data (const std::string &name, R &&range) |
void | set_meta_data (const std::string &name, std::string text) |
void | set_meta_data (const std::string &name, T value) |
void | set_meta_data (const std::string &name, F &&field) |
void | set_meta_data (const std::string &name, FieldPtr ptr) |
FieldPtr | remove_meta_data (const std::string &name) |
void | set_point_field (const std::string &name, F &&point_function, const Precision< T > &prec={}) |
void | set_point_field (const std::string &name, F &&field) |
void | set_point_field (const std::string &name, FieldPtr field_ptr) |
FieldPtr | remove_point_field (const std::string &name) |
void | set_cell_field (const std::string &name, F &&cell_function, const Precision< T > &prec={}) |
void | set_cell_field (const std::string &name, F &&field) |
void | set_cell_field (const std::string &name, FieldPtr field_ptr) |
FieldPtr | remove_cell_field (const std::string &name) |
void | clear () |
void | set_ignore_warnings (bool value) |
const Grid & | grid () const |
const std::optional< WriterOptions > & | writer_options () const |
void | copy_fields (Writer &w) const |
Protected Attributes | |
unsigned | _step_count = 0 |
Additional Inherited Members | |
Public Types inherited from GridFormat::GridWriterBase< Grid > | |
using | Grid = Grid |
using | Field = typename FieldStorage::Field |
using | FieldPtr = typename FieldStorage::FieldPtr |
Protected Member Functions inherited from GridFormat::GridWriterBase< Grid > | |
void | _log_warning (std::string_view warning) const |
auto | _make_point_field (EntityFunction &&f, const Precision< T > &prec) const |
auto | _make_cell_field (EntityFunction &&f, const Precision< T > &prec) const |
std::ranges::range auto | _point_field_names () const |
std::ranges::range auto | _cell_field_names () const |
const Field & | _get_point_field (const std::string &name) const |
FieldPtr | _get_point_field_ptr (const std::string &name) const |
const Field & | _get_cell_field (const std::string &name) const |
FieldPtr | _get_cell_field_ptr (const std::string &name) const |
std::ranges::range auto | _meta_data_field_names () const |
const Field & | _get_meta_data_field (const std::string &name) const |
FieldPtr | _get_meta_data_field_ptr (const std::string &name) const |