| 234 | } |
| 235 | |
| 236 | std::vector<std::pair<std::string, std::string>> DataProcessorService::availableFilters() const { |
| 237 | std::vector<std::pair<std::string, std::string>> out; |
| 238 | if (filter_catalogue_) { |
| 239 | for (const scripting::CatalogueEntry& e : filter_catalogue_->entries()) { |
| 240 | out.emplace_back(e.cls.id, e.cls.name); |
| 241 | } |
| 242 | } |
| 243 | return out; |
| 244 | } |
| 245 | |
| 246 | void DataProcessorService::setFilterCatalogue(std::shared_ptr<scripting::FilterCatalogue> catalogue) { |
| 247 | filter_catalogue_ = std::move(catalogue); |
no test coverage detected