Peano
Loading...
Searching...
No Matches
YAMLInput.h
Go to the documentation of this file.
1// This file is part of the Peano project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3#pragma once
4
7
8#include <string>
9#include <yaml-cpp/yaml.h>
10
11namespace toolbox {
12 namespace curvi {
13 class YAMLInput {
14 public:
15 YAMLInput(std::string input_file);
16
17 void parseDomain(double a_offset[3], double a_size[3]);
18 void parseGrid(uint a_grid[3], uint ez, uint ey, uint ex);
19 void parseModes(uint mode[3]);
20 Root* parse(double offset[3], double size[3], uint grid[3]);
21
22 private:
23 YAML::Node config;
24 };
25 } // namespace curvi
26} // namespace toolbox
Root * parse(double offset[3], double size[3], uint grid[3])
void parseGrid(uint a_grid[3], uint ez, uint ey, uint ex)
void parseDomain(double a_offset[3], double a_size[3])
void parseModes(uint mode[3])
YAMLInput(std::string input_file)