mirror of
https://github.com/SatDump/SatDump
synced 2026-08-13 17:47:30 -04:00
16 lines
No EOL
476 B
C++
16 lines
No EOL
476 B
C++
#include "process.h"
|
|
#include "products2/product.h"
|
|
#include "products2/product_process.h"
|
|
#include <filesystem>
|
|
|
|
namespace satdump
|
|
{
|
|
void processProductsOrDataset(std::string product, std::string directory)
|
|
{
|
|
if (!std::filesystem::exists(directory))
|
|
std::filesystem::create_directories(directory);
|
|
|
|
auto p = products::loadProduct(product);
|
|
satdump::products::process_product_with_handler(p, directory);
|
|
}
|
|
} // namespace satdump
|