preCICE
v3.1.2
Loading...
Searching...
No Matches
src
xml
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
7
namespace
precice
{
8
namespace
xml {
9
10
void
readValueSpecific
(
const
std::string
&rawValue,
double
&value);
11
12
void
readValueSpecific
(
const
std::string
&rawValue,
int
&value);
13
14
inline
void
readValueSpecific
(
const
std::string
&
rawValue
,
std::string
&value)
15
{
16
value =
rawValue
;
17
}
18
19
inline
void
readValueSpecific
(
const
std::string
&
rawValue
,
bool
&value)
20
{
21
value =
precice::utils::convertStringToBool
(
rawValue
);
22
}
23
24
void
readValueSpecific
(
const
std::string
&rawValue, Eigen::VectorXd &value);
25
26
}
// namespace xml
27
}
// namespace precice
String.hpp
std::string
precice::xml::XMLAttribute
Definition
XMLAttribute.hpp:20
precice::utils::convertStringToBool
bool convertStringToBool(std::string const &value)
Evaluates a string to find out if it represents a bool.
Definition
String.cpp:55
precice::xml::readValueSpecific
void readValueSpecific(const std::string &rawValue, double &value)
Definition
ValueParser.cpp:30
precice
Main namespace of the precice library.
Definition
Acceleration.cpp:5
string