Create dynamics interface to combine motion and dist
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user