10 if (flavStr ==
"numu") {
14 if (flavStr.empty() || (flavStr ==
"any")) {
18 throw std::invalid_argument(
19 "Unknown flavor: " + flavStr
20 +
". Supported Flavors: 'numu', 'any', ''" 26 if (formatStr ==
"csv") {
30 throw std::invalid_argument(
31 "Unknown format: " + formatStr +
". Supported Formats: 'csv'" 40 const size_t dotIdx = filename.find_last_of(
'.');
42 if (dotIdx != std::string::npos) {
43 filename.resize(dotIdx);
48 return filename +
".csv";
50 throw std::invalid_argument(
"Unknown format");
Format parseFormat(const std::string &formatStr)
static bool format(QChar::Decomposition tag, QString &str, int index, int len)
std::string convertFilename(const std::string &path, const std::string &root, Format format)
Flavor parseFlavor(const std::string &flavStr)