SatDump 2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
product_handler.h File Reference
#include "../handler.h"
#include "../processing_handler.h"
#include "common/widgets/markdown_helper.h"
#include "nlohmann/json.hpp"
#include "products/product.h"
#include <functional>
#include <memory>
#include <vector>

Go to the source code of this file.

Classes

class  satdump::handlers::ProductHandler
 Product handler base class. More...
struct  satdump::handlers::RequestProductHandlerEvent
 Event used to let plugins provide additional ProductHandlers. More...

Functions

std::shared_ptr< ProductHandlersatdump::handlers::getProductHandlerForProduct (std::shared_ptr< products::Product > product, bool dataset_mode=false)
 Get the appropriate ProductHandler for the provided products.

Function Documentation

◆ getProductHandlerForProduct()

std::shared_ptr< ProductHandler > satdump::handlers::getProductHandlerForProduct ( std::shared_ptr< products::Product > product,
bool dataset_mode = false )

Get the appropriate ProductHandler for the provided products.

Parameters
productproduct, loaded with loadProducts()
dataset_modemust be true if opening inside a dataset
Returns
appropriate handler pointer