From 5864e5abc43b201c3801fa39a2fcaf9e3a9e8914 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 27 Feb 2022 12:54:10 +0100 Subject: refactor: use dependency injection --- src/argument_parser.hpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/argument_parser.hpp (limited to 'src/argument_parser.hpp') diff --git a/src/argument_parser.hpp b/src/argument_parser.hpp new file mode 100644 index 0000000..0bcaeb5 --- /dev/null +++ b/src/argument_parser.hpp @@ -0,0 +1,27 @@ +#pragma once + +#include "DI/auto_wirable.hpp" +#include "interfaces/argument_parser.hpp" +#include "interfaces/randomization.hpp" + +#include +#include +#include + +class ArgumentParser + : public IArgumentParser, + public AutoWirable +{ +public: + explicit ArgumentParser( + IRandomNumberGeneratorFactory random_number_generator_factory); + + ParsedArguments + parse(const std::vector