10 #include "Eigen/Dense" 45 param(std::string file_name);
52 void open(std::string fname);
66 void read(
const std::string param_name,
bool &value);
74 void read(
const std::string param_name,
double &value);
82 void read(
const std::string param_name,
int &value);
90 void read(
const std::string param_name, std::string &value);
98 void read(
const std::string param_name,
99 Eigen::Matrix<double, 3, 3> &value);
107 void read(
const std::string param_name,
108 Eigen::Matrix<double, 4, 1> &value);
116 void read(
const std::string param_name,
117 Eigen::Matrix<double, 3, 1> &value);
124 void read(
const std::string param_name,
125 Eigen::Matrix<double, 15, 15> &value);
132 void read(
const std::string param_name,
133 Eigen::Matrix<double, 2, 1> &value);
143 template<
typename Derived>
144 void read(
const std::string param_name, Eigen::MatrixBase<Derived> &value);
152 void save(
const std::string param_name,
bool value);
160 void save(
const std::string param_name,
double value);
168 void save(
const std::string param_name,
int value);
176 void save(
const std::string param_name,
const std::string value);
184 void save(
const std::string param_name,
185 Eigen::Matrix<double, 3, 3> &value);
195 template<
typename Derived>
196 void save(
const std::string param_name, Eigen::MatrixBase<Derived> &value);
205 std::string find_line(
const std::string param_name);
213 void replace_value(
const std::string param_name, std::string new_value);
bool is_open
Definition: param.hpp:42
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
Definition: common_types.hpp:44
void open(std::string fname)
void save(const std::string param_name, bool value)