cpp/io.h
2024-11-09 17:59:37 +01:00

26 lines
655 B
C++

#ifndef RWSIM_IO_H
#define RWSIM_IO_H
#include <unordered_map>
#include <map>
#include <string>
#include <filesystem>
#include <vector>
struct Arguments {
std::string parameter_file{};
bool ste = false;
bool spectrum = false;
std::string motion_type{};
};
Arguments parse_args(int argc, char **argv);
std::unordered_map<std::string, double> read_parameter(const std::filesystem::path&);
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