2024-08-16 17:55:27 +00:00
|
|
|
|
|
|
|
#ifndef RWSIM_IO_H
|
|
|
|
#define RWSIM_IO_H
|
|
|
|
|
|
|
|
#include <unordered_map>
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
2024-08-18 11:21:27 +00:00
|
|
|
#include <filesystem>
|
2024-08-16 17:55:27 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2024-08-20 15:51:49 +00:00
|
|
|
struct Arguments {
|
|
|
|
std::string parameter_file{};
|
|
|
|
bool ste = false;
|
|
|
|
bool spectrum = false;
|
2024-11-09 16:59:37 +00:00
|
|
|
std::string motion_type{};
|
2024-11-10 14:52:54 +00:00
|
|
|
std::unordered_map<std::string, double> optional;
|
2024-08-20 15:51:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
Arguments parse_args(int argc, char **argv);
|
|
|
|
|
|
|
|
std::unordered_map<std::string, double> read_parameter(const std::filesystem::path&);
|
2024-08-16 17:55:27 +00:00
|
|
|
|
|
|
|
void fid_write_out(const std::string&, const std::vector<double>&, const std::vector<double>&, double, double);
|
|
|
|
void fid_write_out(const std::string&, const std::vector<double>&, const std::map<double, std::vector<double>>&, double tau);
|
|
|
|
|
|
|
|
#endif
|