Create dynamics interface to combine motion and dist

This commit is contained in:
Dominik Demuth
2026-03-08 13:04:40 +01:00
parent 6b42051e45
commit c4485aac6f
16 changed files with 232 additions and 116 deletions

View File

@@ -11,11 +11,6 @@
#include <string>
#include <filesystem>
#include "../motions/base.h"
#include "../times/base.h"
class Motion;
std::pair<std::string, double> get_optional_parameter(std::vector<std::string>::const_iterator &it) {
std::string stripped_arg;
@@ -128,19 +123,12 @@ std::unordered_map<std::string, double> read_parameter(const std::filesystem::pa
}
std::string make_directory(
const motions::BaseMotion& motion,
const times::BaseDistribution& distribution
) {
std::ostringstream path_name;
path_name << motion.toString() << "/" << distribution.toString();
if (!std::filesystem::create_directories(path_name.str())) {
std::cout << "Created directory " << path_name.str() << std::endl;
std::string make_directory(const std::string& path_name) {
if (!std::filesystem::create_directories(path_name)) {
std::cout << "Created directory " << path_name << std::endl;
}
return path_name.str();
return path_name;
}