-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSettingsData.h
43 lines (40 loc) · 1.19 KB
/
SettingsData.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#pragma once
#include <vector>
#include <tuple>
#include <string>
struct SettingsData {
enum class SettingsEnum { //unused..?
FIELD_WIDTH=0, FIELD_HEIGHT, PIECE_DEPTH,
INPUT_FORMAT, OUTPUT_FORMAT, RESIDUE_LOG,
EXPAND_INIT_FIELDS, SQUASH_FINAL_FIELDS,
SFINDER_FILTER, RAW_POSSIBLE_FILTER, COUNT_MIN_FILTER,
INPUT_FILE_CSV, OUTPUT_FILE_CSV, RESIDUE_FILE_CSV, PATH_TO_SFINDER,
OPTIMIZE
};
struct SearchItem {
const std::string Keyword;
std::string Value;
};
std::vector<SearchItem> SearchData =
{
{"FIELD_WIDTH", "10" },
{"FIELD_HEIGHT", "4" },
{"PIECE_DEPTH", "1" },
{"INPUT_FORMAT", "0" },
{"OUTPUT_FORMAT", "0" },
{"RESIDUE_LOG", "0" },
{"EXPAND_INIT_FIELDS", "0" },
{"SQUASH_FILTER", "0" },
{"SQUASH_FINAL_FIELDS", "0" },
{"RAW_POSSIBLE_FILTER", "0" },
{"COUNT_MIN_FILTER", "1" },
{"INPUT_FILE_CSV", "input.csv" },
{"OUTPUT_FILE_CSV", "output.csv" },
{"RESIDUE_FILE_CSV", "residue.csv" },
{"PATH_TO_SFINDER", "sfinder.jar" },
{"OPTIMIZE", "1" }
};
std::string GetValue(SettingsEnum Enum) {
return SearchData[static_cast<int>(Enum)].Value;
}
};