35 std::string handler_name;
37 std::string preset_search_str;
38 std::vector<nlohmann::json> all_presets;
39 std::vector<std::string> preset_selection_box_str;
40 int preset_selection_curr_id = -1;
42 bool has_markdown_description =
false;
43 bool show_markdown_description =
false;
44 widgets::MarkdownHelper markdown_info;
48 bool preset_reset_by_handler =
false;
51 preset_selection_curr_id = -1;
52 has_markdown_description =
false;
56 std::shared_ptr<products::Product> product;
57 nlohmann::ordered_json instrument_cfg;
60 std::string product_internal_name;
61 std::string generateFileName();
77 nlohmann::json getInstrumentCfg() {
return instrument_cfg; }
78 virtual void saveResult(std::string directory);
88 ProductHandler(std::shared_ptr<products::Product> p,
bool dataset_mode =
false, std::function<
bool(nlohmann::ordered_json &)> filterPreset = [](
auto &) {
return true; });
90 std::string
getName() {
return handler_name; }
92 std::string getID() {
return "product_handler"; };
ProductHandler(std::shared_ptr< products::Product > p, bool dataset_mode=false, std::function< bool(nlohmann::ordered_json &)> filterPreset=[](auto &) { return true;})
Constructor.
Definition product_handler.cpp:17
std::shared_ptr< ProductHandler > getProductHandlerForProduct(std::shared_ptr< products::Product > product, bool dataset_mode=false)
Get the appropriate ProductHandler for the provided products.
Definition product_handler_init.cpp:14