4#include "dependencies/CLI11/CLI11.hpp"
20 app.add_option (
"--data-root-path,-d", m_dataRootPath,
"Data root path");
21 app.add_option (
"--tags,-t", m_tags,
"Test tags. Nut supported yet!");
22 app.add_option (
"--seed,-s", m_seed,
"Random seed")->default_val (0);
27 "Number of displayed decimal places for samples' linear values in test output"
33 "Number of displayed decimal places for values in decidels in test output"
39 "Number of displayed decimal places for values in seconds in test output"
45 "Number of displayed decimal places for values in hertz in test output"
51 "Number of displayed decimal places for values in radians in test output"
57 "Number of displayed decimal places for values in cents in test output"
60 app.add_flag (
"--run-generators,-g", m_runGeneratorsNotTests,
"Run generators instead of tests");
61 app.add_flag (
"--shuffle", m_shuffle,
"Shuffle task order. Obeys --seed value.");
91 CLI::App app {
"HART" };
93 std::string m_dataRootPath =
".";
94 std::string m_tags =
"";
95 uint_fast32_t m_seed = 0;
96 bool m_runGeneratorsNotTests =
false;
97 bool m_shuffle =
false;
99 int m_linDecimals = 0;
100 int m_dbDecimals = 0;
101 int m_secDecimals = 0;
102 int m_hzDecimals = 0;
103 int m_radDecimals = 0;
104 int m_centsDecimals = 0;
106 CLIConfig() =
default;
uint_fast32_t getRandomSeed()
std::string getDataRootPath()
void initCommandLineArgs()
bool shouldRunGenerators()
bool shouldShuffleTasks()
static CLIConfig & getInstance()