SatDump 2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
dataset_handler.h
Go to the documentation of this file.
1#pragma once
2
6
7#include "../handler.h"
8#include "products/dataset.h"
9#include "products/product.h"
10
11namespace satdump
12{
13 namespace handlers
14 {
28 class DatasetHandler : public Handler
29 {
30 private:
31 products::DataSet dataset;
32 std::string dataset_name = "Invalid Dataset!";
33
34 public:
40 DatasetHandler(std::string path, products::DataSet d);
42
43 std::shared_ptr<Handler> instrument_products;
44 std::shared_ptr<Handler> general_products;
45 std::vector<std::shared_ptr<products::Product>> all_products;
46
47 // The Rest
48 void init();
49 void drawMenu();
50 void drawContents(ImVec2 win_size);
51
52 std::string getName() { return dataset_name; }
53
54 std::string getID() { return "dataset_handler"; }
55 };
56 } // namespace handlers
57} // namespace satdump
std::string getName()
Get this handler's readable name.
Definition dataset_handler.h:52
void drawMenu()
Render explorer menu left sidebar.
Definition dataset_handler.cpp:44
void drawContents(ImVec2 win_size)
Render explorer contents (center/left)
Definition dataset_handler.cpp:46
DatasetHandler(std::string path, products::DataSet d)
Constructor.
Definition dataset_handler.cpp:15
SatDump's handler base class.
Definition handler.h:32
Core dataset implementation.
Core Product implementation.
SatDump dataset struct.
Definition dataset.h:26