preCICE v3.1.2
Loading...
Searching...
No Matches
ValueParser.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <Eigen/Core>
4#include <string>
5#include "utils/String.hpp"
6
7namespace precice {
8namespace xml {
9
10void readValueSpecific(const std::string &rawValue, double &value);
11
12void readValueSpecific(const std::string &rawValue, int &value);
13
15{
16 value = rawValue;
17}
18
19inline void readValueSpecific(const std::string &rawValue, bool &value)
20{
22}
23
24void readValueSpecific(const std::string &rawValue, Eigen::VectorXd &value);
25
26} // namespace xml
27} // namespace precice
bool convertStringToBool(std::string const &value)
Evaluates a string to find out if it represents a bool.
Definition String.cpp:55
void readValueSpecific(const std::string &rawValue, double &value)
Main namespace of the precice library.