4#include "dependencies/CLI11/CLI11.hpp"
25 app.add_option (
"--data-root-path,-d", m_dataRootPath,
"Data root path");
26 app.add_option (
"--tags,-t", m_tags,
"Test tags");
27 app.add_option (
"--seed,-s", m_seed,
"Random seed")->default_val (0);
32 "Number of displayed decimal places for samples' linear values in test output"
38 "Number of displayed decimal places for values in decidels in test output"
44 "Number of displayed decimal places for values in seconds in test output"
50 "Number of displayed decimal places for values in hertz in test output"
56 "Number of displayed decimal places for values in radians in test output"
62 "Number of displayed decimal places for values in cents in test output"
65 app.add_flag (
"--run-generators,-g", m_runGeneratorsNotTests,
"Run generators instead of tests");
66 app.add_flag (
"--shuffle", m_shuffle,
"Shuffle task order. Obeys --seed value.");
101 CLI::App app {
"HART" };
103 std::string m_dataRootPath =
".";
104 std::string m_tags =
"";
105 uint_fast32_t m_seed = 0;
106 bool m_runGeneratorsNotTests =
false;
107 bool m_shuffle =
false;
109 int m_linDecimals = 0;
110 int m_dbDecimals = 0;
111 int m_secDecimals = 0;
112 int m_hzDecimals = 0;
113 int m_radDecimals = 0;
114 int m_centsDecimals = 0;
116 CLIConfig() =
default;
Holds values set by the user via CLI interface.
uint_fast32_t getRandomSeed()
Gets random seed set by a "`--seed`/`-s`" argument.
std::string getDataRootPath()
Get data root path set by a "`--data-root-path`,`-d`" argument.
void initCommandLineArgs()
Inits the CLI arguments.
bool shouldRunGenerators()
bool shouldShuffleTasks()
static CLIConfig & getInstance()
Get the singleton instance.