MCPcopy Create free account
hub / github.com/IENT/YUView / Options

Class Options

YUViewLib/src/parser/common/SubByteReaderLoggingOptions.h:73–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71};
72
73struct 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

Callers 15

parse_ATSC1_dataFunction · 0.85
parsePixelDataSubBlockFunction · 0.85
parseMethod · 0.85
parseMethod · 0.85
parseMethod · 0.85
parseMethod · 0.85
parseMethod · 0.85
parseExtradata_AVCMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected