GridFormat 0.2.1
I/O-Library for grid-like data structures
Loading...
Searching...
No Matches
converter.hpp File Reference

Converter between grid formats. More...

#include <array>
#include <vector>
#include <ranges>
#include <concepts>
#include <utility>
#include <numeric>
#include <optional>
#include <cstdint>
#include <gridformat/common/field.hpp>
#include <gridformat/common/exceptions.hpp>
#include <gridformat/grid/cell_type.hpp>
#include <gridformat/grid/reader.hpp>
#include <gridformat/grid/writer.hpp>

Go to the source code of this file.

Classes

struct  GridFormat::Traits::Points< ConverterDetail::ConverterGrid >
 
struct  GridFormat::Traits::Cells< ConverterDetail::ConverterGrid >
 
struct  GridFormat::Traits::NumberOfPoints< ConverterDetail::ConverterGrid >
 
struct  GridFormat::Traits::NumberOfCells< ConverterDetail::ConverterGrid >
 
struct  GridFormat::Traits::CellPoints< ConverterDetail::ConverterGrid, std::int64_t >
 
struct  GridFormat::Traits::CellType< ConverterDetail::ConverterGrid, std::int64_t >
 
struct  GridFormat::Traits::PointCoordinates< ConverterDetail::ConverterGrid, std::size_t >
 
struct  GridFormat::Traits::PointId< ConverterDetail::ConverterGrid, std::size_t >
 
struct  GridFormat::Traits::NumberOfCellPoints< ConverterDetail::ConverterGrid, std::int64_t >
 
struct  GridFormat::Traits::Origin< ConverterDetail::ConverterGrid >
 
struct  GridFormat::Traits::Spacing< ConverterDetail::ConverterGrid >
 
struct  GridFormat::Traits::Basis< ConverterDetail::ConverterGrid >
 
struct  GridFormat::Traits::Extents< ConverterDetail::ConverterGrid >
 
struct  GridFormat::Traits::Ordinates< ConverterDetail::ConverterGrid >
 
struct  GridFormat::Traits::Location< ConverterDetail::ConverterGrid, Entity >
 

Functions

template<std::derived_from< GridReader > Reader, ConverterDetail::WriterFactory Factory>
std::string GridFormat::convert (const Reader &reader, const std::string &filename, const Factory &factory)
 Convert between grid formats.
 
template<std::derived_from< GridReader > Reader, ConverterDetail::TimeSeriesWriterFactory Factory, std::invocable< std::size_t, const std::string & > StepCallBack = decltype([] (std::size_t, const std::string&) {})>
std::string GridFormat::convert (Reader &reader, const Factory &factory, const StepCallBack &call_back={})
 Overload for time series formats.