satdump/plugins/fengyun3_support/main.cpp

23 lines
857 B
C++
Raw Permalink Normal View History

#include "core/plugin.h"
2022-02-21 23:32:11 +01:00
#include "logger.h"
#include "fengyun3/module_fengyun_ahrpt_decoder.h"
#include "fengyun3/module_fengyun_mpt_decoder.h"
2022-04-29 12:45:09 +02:00
#include "fengyun3/module_fy3_instruments.h"
2022-02-21 23:32:11 +01:00
class FengYun3Support : public satdump::Plugin
{
public:
std::string getID() { return "fengyun3_support"; }
2022-02-21 23:32:11 +01:00
void init() { satdump::eventBus->register_handler<satdump::pipeline::RegisterModulesEvent>(registerPluginsHandler); }
2022-02-21 23:32:11 +01:00
static void registerPluginsHandler(const satdump::pipeline::RegisterModulesEvent &evt)
2022-02-21 23:32:11 +01:00
{
REGISTER_MODULE_EXTERNAL(evt.modules_registry, fengyun3::FengyunAHRPTDecoderModule);
REGISTER_MODULE_EXTERNAL(evt.modules_registry, fengyun3::FengyunMPTDecoderModule);
2022-04-29 12:45:09 +02:00
REGISTER_MODULE_EXTERNAL(evt.modules_registry, fengyun3::instruments::FY3InstrumentsDecoderModule);
2022-02-21 23:32:11 +01:00
}
};
PLUGIN_LOADER(FengYun3Support)