Custom parameter handling.
105 {
106 if (name == "algorithm") {
107 if (auto alg_result = safe_any_cast<SortingAlgorithm>(value)) {
109 return;
110 }
111 if (auto str_result = safe_any_cast<std::string>(value)) {
112 auto algorithm_enum = Utils::string_to_enum_case_insensitive<SortingAlgorithm>(*str_result.value);
113 if (algorithm_enum) {
115 return;
116 }
117 }
118 }
119 if (name == "chunk_size") {
120 if (auto size_result = safe_any_cast<size_t>(value)) {
122 return;
123 }
124 }
126 }
SortingAlgorithm m_algorithm
virtual void set_sorting_parameter(const std::string &name, std::any value)
Sorting-specific parameter handling (override for custom parameters)