10 class Flowgraph_DatasetProductProcessor :
public DatasetProductProcessor
19 Flowgraph_DatasetProductProcessor *proc;
20 std::string product_id;
21 int product_index = 0;
24 DatasetProductSource_Node(Flowgraph_DatasetProductProcessor *proc) :
NodeInternal(
"Dataset Product Source"), proc(proc) { outputs.push_back({
"Product"}); }
28 outputs[0].ptr = std::shared_ptr<products::Product>(proc->get_instrument_products(product_id, product_index), [](
products::Product *) {});
34 ImGui::SetNextItemWidth(200 * ui_scale);
35 ImGui::InputText(
"ID", &product_id);
36 ImGui::SetNextItemWidth(200 * ui_scale);
37 ImGui::InputInt(
"Index", &product_index);
40 nlohmann::json to_json()
44 j[
"index"] = product_index;
48 void from_json(nlohmann::json j)
51 product_index = j[
"index"];
58 nlohmann::json getCfg();
61 void process(
float *progress =
nullptr);