cpp/io.h

25 lines
624 B
C
Raw Normal View History

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;
};
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