Maze Builder Docs 8.2.1
Loading...
Searching...
No Matches
convert_contract.h
1#ifndef CONVERT_CONTRACT_H
2#define CONVERT_CONTRACT_H
3
4#include <optional>
5#include <string_view>
6
7namespace mazes
8{
9 class args;
10
13 {
14 public:
15 virtual ~convert_contract() = default;
19 [[nodiscard]] virtual std::optional<args> convert(std::string_view arguments) const noexcept = 0;
20 };
21
24}
25
26#endif // CONVERT_CONTRACT_H
Contract for converting arguments to args.
Definition convert_contract.h:13
virtual std::optional< args > convert(std::string_view arguments) const noexcept=0
Convert arguments to args.