Default main executable runner for Hayai. More...
#include <hayai_main.hpp>
Public Member Functions | |
MainRunner () | |
int | ParseArgs (int argc, char **argv, std::vector< char * > *residualArgs=NULL) |
Parse arguments. | |
int | Run () |
Run the selected execution mode. | |
~MainRunner () | |
Public Attributes | |
MainExecutionMode | ExecutionMode |
Execution mode. | |
std::vector< FileOutputter * > | FileOutputters |
bool | ShuffleBenchmarks |
Shuffle benchmarks. | |
Outputter * | StdoutOutputter |
Private Member Functions | |
int | ListBenchmarks () |
List benchmarks. | |
int | RunBenchmarks () |
Run benchmarks. | |
void | ShowUsage (const char *execName) |
Show usage. |
Default main executable runner for Hayai.
Definition at line 148 of file hayai_main.hpp.
hayai::MainRunner::MainRunner | ( | ) | [inline] |
Definition at line 151 of file hayai_main.hpp.
hayai::MainRunner::~MainRunner | ( | ) | [inline] |
Definition at line 160 of file hayai_main.hpp.
int hayai::MainRunner::ListBenchmarks | ( | ) | [inline, private] |
List benchmarks.
Definition at line 401 of file hayai_main.hpp.
int hayai::MainRunner::ParseArgs | ( | int | argc, |
char ** | argv, | ||
std::vector< char * > * | residualArgs = NULL |
||
) | [inline] |
Parse arguments.
argc | Argument count including the executable name. |
argv | Arguments. |
residualArgs | Pointer to vector to hold residual arguments after parsing. If not NULL, the parser will not fail upon encounting an unknown argument but will instead add it to the list of residual arguments and return a success code. Note: the parser will still fail if an invalid value is provided to a known argument. |
Definition at line 206 of file hayai_main.hpp.
int hayai::MainRunner::Run | ( | ) | [inline] |
Run the selected execution mode.
Definition at line 337 of file hayai_main.hpp.
int hayai::MainRunner::RunBenchmarks | ( | ) | [inline, private] |
Run benchmarks.
Definition at line 359 of file hayai_main.hpp.
void hayai::MainRunner::ShowUsage | ( | const char * | execName | ) | [inline, private] |
Execution mode.
Definition at line 175 of file hayai_main.hpp.
std::vector<FileOutputter*> hayai::MainRunner::FileOutputters |
File outputters.
Outputter will be freed by the class on destruction.
Definition at line 185 of file hayai_main.hpp.
Shuffle benchmarks.
Definition at line 179 of file hayai_main.hpp.
Standard output outputter.
Will be freed by the class on destruction.
Definition at line 191 of file hayai_main.hpp.