|
| args () noexcept |
| Default constructor.
|
|
| ~args () |
| Destructor.
|
|
| args (const args &other) |
| Copy constructor.
|
|
args & | operator= (const args &other) |
| Copy assignment operator.
|
|
| args (args &&other) noexcept=default |
| Move constructor.
|
|
args & | operator= (args &&other) noexcept=default |
| Move assignment operator.
|
|
bool | parse (const std::vector< std::string > &arguments) noexcept |
| Parse program arguments from a vector of strings.
|
|
bool | parse (const std::string &arguments) noexcept |
| Parse program arguments from a string.
|
|
bool | parse (int argc, char **argv) noexcept |
| Parse program arguments from argc/argv.
|
|
void | clear () noexcept |
| Clear the arguments map.
|
|
std::optional< std::string > | get (const std::string &key) const noexcept |
| Get a value from the args map.
|
|
const std::unordered_map< std::string, std::string > & | get () const noexcept |
| Get entire args map.
|
|
bool | has_multiple_configurations () const noexcept |
| Check if we have multiple configurations (from JSON array)
|
|
size_t | get_configuration_count () const noexcept |
| Get the number of configurations stored.
|
|
std::optional< std::unordered_map< std::string, std::string > > | get_configuration (size_t index) const noexcept |
| Get configuration by index (0-based)
|
|
std::vector< std::unordered_map< std::string, std::string > > | get_all_configurations () const noexcept |
| Get all configurations as a vector.
|
|
bool | add_option (const std::string &flags, const std::string &description) noexcept |
| Add a new option to the CLI parser.
|
|
bool | add_flag (const std::string &flags, const std::string &description) noexcept |
| Add a new flag to the CLI parser.
|
|
|
static constexpr const char * | ALGO_ID_FLAG_STR = "-a" |
|
static constexpr const char * | ALGO_ID_OPTION_STR = "--algo" |
|
static constexpr const char * | ALGO_ID_WORD_STR = "algo" |
|
static constexpr const char * | ALGO_ID_SHORT_STR = "a" |
|
static constexpr const char * | BLOCK_ID_FLAG_STR = "-b" |
|
static constexpr const char * | BLOCK_ID_OPTION_STR = "--block" |
|
static constexpr const char * | BLOCK_ID_WORD_STR = "block" |
|
static constexpr const char * | BLOCK_ID_SHORT_STR = "b" |
|
static constexpr const char * | ROW_FLAG_STR = "-r" |
|
static constexpr const char * | ROW_OPTION_STR = "--rows" |
|
static constexpr const char * | ROW_WORD_STR = "rows" |
|
static constexpr const char * | ROW_SHORT_STR = "r" |
|
static constexpr const char * | COLUMN_FLAG_STR = "-c" |
|
static constexpr const char * | COLUMN_OPTION_STR = "--columns" |
|
static constexpr const char * | COLUMN_WORD_STR = "columns" |
|
static constexpr const char * | COLUMN_SHORT_STR = "c" |
|
static constexpr const char * | LEVEL_FLAG_STR = "-l" |
|
static constexpr const char * | LEVEL_OPTION_STR = "--levels" |
|
static constexpr const char * | LEVEL_WORD_STR = "levels" |
|
static constexpr const char * | LEVEL_SHORT_STR = "l" |
|
static constexpr const char * | JSON_FLAG_STR = "-j" |
|
static constexpr const char * | JSON_OPTION_STR = "--json" |
|
static constexpr const char * | JSON_WORD_STR = "json" |
|
static constexpr const char * | JSON_SHORT_STR = "j" |
|
static constexpr const char * | OUTPUT_ID_FLAG_STR = "-o" |
|
static constexpr const char * | OUTPUT_ID_OPTION_STR = "--output" |
|
static constexpr const char * | OUTPUT_ID_WORD_STR = "output" |
|
static constexpr const char * | OUTPUT_ID_SHORT_STR = "o" |
|
static constexpr const char * | DEFAULT_OUTPUT_FILENAME = "output.json" |
|
static constexpr const char * | SEED_FLAG_STR = "-s" |
|
static constexpr const char * | SEED_OPTION_STR = "--seed" |
|
static constexpr const char * | SEED_WORD_STR = "seed" |
|
static constexpr const char * | SEED_SHORT_STR = "s" |
|
static constexpr const char * | DISTANCES_FLAG_STR = "-d" |
|
static constexpr const char * | DISTANCES_OPTION_STR = "--distances" |
|
static constexpr const char * | DISTANCES_WORD_STR = "distances" |
|
static constexpr const char * | DISTANCES_SHORT_STR = "d" |
|
static constexpr const char * | DISTANCES_START_STR = "distances_start" |
|
static constexpr const char * | DISTANCES_END_STR = "distances_end" |
|
static constexpr const char * | DISTANCES_DEFAULT_START = "0" |
|
static constexpr const char * | DISTANCES_DEFAULT_END = "-1" |
|
static constexpr const char * | HELP_FLAG_STR = "-h" |
|
static constexpr const char * | HELP_OPTION_STR = "--help" |
|
static constexpr const char * | HELP_WORD_STR = "help" |
|
static constexpr const char * | HELP_SHORT_STR = "h" |
|
static constexpr const char * | VERSION_FLAG_STR = "-v" |
|
static constexpr const char * | VERSION_OPTION_STR = "--version" |
|
static constexpr const char * | VERSION_WORD_STR = "version" |
|
static constexpr const char * | VERSION_SHORT_STR = "v" |
|
static constexpr const char * | TRUE_VALUE = "true" |
|
Command-line argument handler with JSON support.
Uses PIMPL pattern to wrap CLI11 functionality with additional JSON support