aboutsummaryrefslogtreecommitdiff
path: root/src/argument_parser.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-06-02 20:07:09 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:57:00 +0200
commitcf3bfd60ad03f2feb2ccc62a12fc2922bdc2fb71 (patch)
tree9ea6c1465ec499cff6b24fe57d1a1b2e469a2dd1 /src/argument_parser.hpp
parenteecf4b1e666211a13afa56f93477c55e8fd01621 (diff)
refactor: remove randomization & argument parser
Diffstat (limited to 'src/argument_parser.hpp')
-rw-r--r--src/argument_parser.hpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/argument_parser.hpp b/src/argument_parser.hpp
deleted file mode 100644
index 3a32e0b..0000000
--- a/src/argument_parser.hpp
+++ /dev/null
@@ -1,31 +0,0 @@
-#pragma once
-
-#include "interfaces/argument_parser.hpp"
-#include "interfaces/randomization.hpp"
-
-#include <yacppdic/auto_wirable.hpp>
-
-#include <getopt.h>
-#include <string_view>
-#include <vector>
-
-class ArgumentParser
- : public IArgumentParser,
- public yacppdic::
- AutoWirable<IArgumentParser, ArgumentParser, IRandomNumberGeneratorFactory>
-{
-public:
- explicit ArgumentParser(
- IRandomNumberGeneratorFactory random_number_generator_factory) noexcept;
-
- auto parse(
- const std::vector<option> &options,
- const std::string_view &short_options,
- const int &argc,
- char *const *argv) noexcept
- -> ParsedArguments override; // NOLINT(cppcoreguidelines-avoid-c-arrays,
- // modernize-avoid-c-arrays)
-
-private:
- IRandomNumberGeneratorFactory _random_number_generator_factory;
-};