| 71 | }; |
| 72 | |
| 73 | struct Options |
| 74 | { |
| 75 | Options() = default; |
| 76 | |
| 77 | [[nodiscard]] Options &&withMeaning(const std::string &meaningString); |
| 78 | [[nodiscard]] Options &&withMeaningMap(const MeaningMap &meaningMap); |
| 79 | [[nodiscard]] Options &&withMeaningVector(const std::vector<std::string> &meaningVector); |
| 80 | [[nodiscard]] Options && |
| 81 | withMeaningFunction(const std::function<std::string(int64_t)> &meaningFunction); |
| 82 | [[nodiscard]] Options &&withCheckEqualTo(int64_t value, |
| 83 | const std::string &errorIfFail = {}, |
| 84 | const CheckLevel checkLevel = CheckLevel::Error); |
| 85 | [[nodiscard]] Options &&withCheckEqualTo(int64_t value, const CheckLevel checkLevel); |
| 86 | [[nodiscard]] Options &&withCheckGreater(int64_t value, |
| 87 | bool inclusive = true, |
| 88 | const std::string &errorIfFail = {}, |
| 89 | const CheckLevel checkLevel = CheckLevel::Error); |
| 90 | [[nodiscard]] Options &&withCheckSmaller(int64_t value, |
| 91 | bool inclusive = true, |
| 92 | const std::string &errorIfFail = {}, |
| 93 | const CheckLevel checkLevel = CheckLevel::Error); |
| 94 | [[nodiscard]] Options &&withCheckRange(Range<int64_t> range, |
| 95 | bool inclusive = true, |
| 96 | const std::string &errorIfFail = {}, |
| 97 | const CheckLevel checkLevel = CheckLevel::Error); |
| 98 | [[nodiscard]] Options &&withLoggingDisabled(); |
| 99 | |
| 100 | std::string meaningString; |
| 101 | std::map<int, std::string> meaningMap; |
| 102 | std::function<std::string(int64_t)> meaningFunction; |
| 103 | std::vector<std::unique_ptr<Check>> checkList; |
| 104 | bool loggingDisabled{false}; |
| 105 | }; |
| 106 | |
| 107 | } // namespace parser::reader |
no outgoing calls
no test coverage detected