10 #include "Eigen/Dense" 44 param(std::string file_name);
51 void open(std::string fname);
65 void read(
const std::string param_name,
bool &value);
73 void read(
const std::string param_name,
double &value);
81 void read(
const std::string param_name,
int &value);
89 void read(
const std::string param_name, std::string &value);
97 void read(
const std::string param_name,
98 Eigen::Matrix<double, 3, 3> &value);
106 void read(
const std::string param_name,
107 Eigen::Matrix<double, 4, 1> &value);
115 void read(
const std::string param_name,
116 Eigen::Matrix<double, 3, 1> &value);
126 template<
typename Derived>
127 void read(
const std::string param_name, Eigen::MatrixBase<Derived> &value);
135 void save(
const std::string param_name,
bool value);
143 void save(
const std::string param_name,
double value);
151 void save(
const std::string param_name,
int value);
159 void save(
const std::string param_name,
const std::string value);
167 void save(
const std::string param_name,
168 Eigen::Matrix<double, 3, 3> &value);
178 template<
typename Derived>
179 void save(
const std::string param_name, Eigen::MatrixBase<Derived> &value);
188 std::string find_line(
const std::string param_name);
196 void replace_value(
const std::string param_name, std::string new_value);
void read(const std::string param_name, bool &value)
Saving and loading parameters.
Definition: param.hpp:34
std::string file_name
Definition: param.hpp:38
std::fstream file_stream
Definition: param.hpp:41
void open(std::string fname)
void save(const std::string param_name, bool value)