HART  0.2.0
High level Audio Regression and Testing
Loading...
Searching...
No Matches
CLIConfig Struct Reference

Holds values set by the user via CLI interface. More...

#include <hart_cliconfig.hpp>

Public Member Functions

void initCommandLineArgs ()
 Inits the CLI arguments.
 
CLI::App & getCLIApp ()
 
std::string getDataRootPath ()
 Get data root path set by a "`--data-root-path`,`-d`" argument.
 
uint_fast32_t getRandomSeed ()
 Gets random seed set by a "`--seed`/`-s`" argument.
 
int getLinDecimals ()
 
int getDbDecimals ()
 
int getSecDecimals ()
 
int getHzDecimals ()
 
int getRadDecimals ()
 
int getCentsDecimals ()
 
bool shouldRunGenerators ()
 
bool shouldShuffleTasks ()
 
std::string & getTags ()
 

Static Public Member Functions

static CLIConfiggetInstance ()
 Get the singleton instance.
 

Detailed Description

Holds values set by the user via CLI interface.

It's mostly intended for the internal use, but you may access it in your own test cases as well

Definition at line 12 of file hart_cliconfig.hpp.

Member Function Documentation

◆ getInstance()

static CLIConfig & getInstance ( )
inlinestatic

Get the singleton instance.

Definition at line 16 of file hart_cliconfig.hpp.

◆ initCommandLineArgs()

void initCommandLineArgs ( )
inline

Inits the CLI arguments.

Definition at line 23 of file hart_cliconfig.hpp.

◆ getCLIApp()

CLI::App & getCLIApp ( )
inline

Definition at line 69 of file hart_cliconfig.hpp.

◆ getDataRootPath()

std::string getDataRootPath ( )
inline

Get data root path set by a "`--data-root-path`,`-d`" argument.

Definition at line 72 of file hart_cliconfig.hpp.

◆ getRandomSeed()

uint_fast32_t getRandomSeed ( )
inline

Gets random seed set by a "`--seed`/`-s`" argument.

You can use it in your test cases to keep your own random-ness dependent on the global random seed

Definition at line 76 of file hart_cliconfig.hpp.

◆ getLinDecimals()

int getLinDecimals ( )
inline
See also
linPrecision

Definition at line 79 of file hart_cliconfig.hpp.

◆ getDbDecimals()

int getDbDecimals ( )
inline
See also
dbPrecision

Definition at line 82 of file hart_cliconfig.hpp.

◆ getSecDecimals()

int getSecDecimals ( )
inline
See also
secPrecision

Definition at line 85 of file hart_cliconfig.hpp.

◆ getHzDecimals()

int getHzDecimals ( )
inline
See also
hzPrecision

Definition at line 88 of file hart_cliconfig.hpp.

◆ getRadDecimals()

int getRadDecimals ( )
inline
See also
radPrecision

Definition at line 91 of file hart_cliconfig.hpp.

◆ getCentsDecimals()

int getCentsDecimals ( )
inline
See also
centsPrecision

Definition at line 94 of file hart_cliconfig.hpp.

◆ shouldRunGenerators()

bool shouldRunGenerators ( )
inline

Definition at line 96 of file hart_cliconfig.hpp.

◆ shouldShuffleTasks()

bool shouldShuffleTasks ( )
inline

Definition at line 97 of file hart_cliconfig.hpp.

◆ getTags()

std::string & getTags ( )
inline

Definition at line 98 of file hart_cliconfig.hpp.


The documentation for this struct was generated from the following file: