diff options
Diffstat (limited to 'src/interfaces/argument_parser.hpp')
-rw-r--r-- | src/interfaces/argument_parser.hpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/interfaces/argument_parser.hpp b/src/interfaces/argument_parser.hpp new file mode 100644 index 0000000..222d9e0 --- /dev/null +++ b/src/interfaces/argument_parser.hpp @@ -0,0 +1,23 @@ +#pragma once + +#include "interfaces/randomization.hpp" + +#include <getopt.h> +#include <memory> +#include <string_view> +#include <vector> + +struct ParsedArguments +{ + std::shared_ptr<IRandomNumberGenerator> random_gen = nullptr; +}; + +class IArgumentParser +{ +public: + virtual ParsedArguments + parse(const std::vector<option> &options, const std::string_view &short_options, + const int &argc, + char *const *argv) = 0; // NOLINT(cppcoreguidelines-avoid-c-arrays, + // modernize-avoid-c-arrays) +}; |