NeoN
A framework for CFD software
Loading...
Searching...
No Matches
input.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2023 - 2025 NeoN authors
2//
3// SPDX-License-Identifier: MIT
4
5#pragma once
6
7#include <variant>
8
11
12namespace NeoN
13{
14
15using Input = std::variant<Dictionary, TokenList>;
16
17template<class DataClass>
18DataClass read(Input input)
19{
20 return std::visit([](const auto& i) { return DataClass::read(i); }, input);
21}
22
23}
Definition array.hpp:20
std::variant< Dictionary, TokenList > Input
Definition input.hpp:15
DataClass read(Input input)
Definition input.hpp:18