18#include <fmt/format.h>
23#include <unordered_map>
62 std::map<Method, std::pair<float, float>>
methods_;
79class fmt::formatter<
R3B::SteerWriter::Method>
82 static constexpr auto parse(format_parse_context& ctx) {
return ctx.end(); }
83 template <
typename FmtContent>
constexpr auto DEFAULT_STEER_FILENAME
constexpr auto DEFAULT_MILLEPEDE_PARAMETER_FILE
constexpr auto DEFAULT_DATA_FILENAME
std::string data_filepath_
void set_data_filepath(std::string_view filepath)
void set_working_dir(std::string_view dir)
std::vector< std::vector< std::string > > other_options_
std::string parameter_file_
void write_data_file(std::ofstream &ofile)
void add_method(Method method, const std::pair< float, float > &values)
void write_parameter_defaults()
std::map< Method, std::pair< float, float > > methods_
void set_parameter_file(std::string_view filename)
void add_other_options(std::vector< std::string > options)
void add_parameter_default(int par_num, const std::pair< float, float > &values)
static constexpr auto convert_method_to_str(Method) -> std::string_view
std::unordered_map< int, std::pair< float, float > > parameter_defaults_
void write_methods(std::ofstream &ofile)
void set_filepath(std::string_view filepath)
void write_others(std::ofstream &ofile)