preCICE v3.2.0
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::xml {
8
9void readValueSpecific(const std::string &rawValue, double &value);
10
11void readValueSpecific(const std::string &rawValue, int &value);
12
13inline void readValueSpecific(const std::string &rawValue, std::string &value)
14{
15 value = rawValue;
16}
17
18inline void readValueSpecific(const std::string &rawValue, bool &value)
19{
21}
22
23void readValueSpecific(const std::string &rawValue, Eigen::VectorXd &value);
24
25} // namespace precice::xml
bool convertStringToBool(std::string const &value)
Evaluates a string to find out if it represents a bool.
Definition String.cpp:56
contains the XML configuration parser.
void readValueSpecific(const std::string &rawValue, double &value)