5#include <unordered_map>
20 bool parse(
const std::vector<std::string>& arguments)
noexcept;
25 bool parse(
const std::string& arguments)
noexcept;
33 std::optional<std::
string>
get(const std::
string& key) const noexcept;
37 const std::unordered_map<std::
string, std::
string>&
get() const noexcept;
42 void set(const std::
string& key, const std::
string& value) noexcept;
47 std::
string trim(const std::
string& str) const noexcept;
53 std::unordered_map<std::
string, std::
string> args_map;
Namespace for the maze builder.
Definition algo_interface.h:9
Simple argument handler.
Definition args.h:15
bool parse(const std::vector< std::string > &arguments) noexcept
Parse program arguments from a vector of strings.
const std::unordered_map< std::string, std::string > & get() const noexcept
Get entire the args map.
std::string trim(const std::string &str) const noexcept
Remove whitespace or tabs from a string.
void clear() noexcept
Clear the arguments map.
static std::string to_str(const args &a) noexcept
Display the arguments to a string output.
bool parse(const std::string &arguments) noexcept
Parse program arguments from a string.
void set(const std::string &key, const std::string &value) noexcept
Set a value.