SatDump 2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
dataset_product_handler.h
1#pragma once
2
3#include "../handler.h"
5#include "dataset_handler.h"
6
7#include "processor.h"
8
9namespace satdump
10{
11 namespace handlers
12 {
13 class DatasetProductHandler : public Handler, public ProcessingHandler
14 {
15 public:
16 DatasetProductHandler();
17 ~DatasetProductHandler();
18
19 DatasetHandler *dataset_handler;
20
21 // Presets / processor list
22 std::string current_cfg;
23 std::vector<nlohmann::json> available_presets;
24 std::unique_ptr<DatasetProductProcessor> processor;
25
26 // Proc function
27 void do_process();
28
29 // The Rest
30 void drawMenu();
31 void drawContents(ImVec2 win_size);
32
33 std::string getName() { return "Products"; }
34
35 std::string getID() { return "dataset_product_handler"; }
36 };
37 } // namespace handlers
38} // namespace satdump
Dataset handler.
Definition dataset_handler.h:29
std::string getName()
Get this handler's readable name.
Definition dataset_product_handler.h:33
void drawContents(ImVec2 win_size)
Render explorer contents (center/left)
Definition dataset_product_handler.cpp:29
void do_process()
Actual processing function to be implemented by the child class.
Definition dataset_product_handler.cpp:92
void drawMenu()
Render explorer menu left sidebar.
Definition dataset_product_handler.cpp:27
SatDump's handler base class.
Definition handler.h:32