satdump/plugins/fengyun3_support/main.cpp

30 lines
876 B
C++
Raw Normal View History

#include "core/plugin.h"
2022-02-21 23:32:11 +01:00
#include "logger.h"
#include "core/module.h"
2022-02-21 23:32:11 +01:00
#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";
}
void init()
{
satdump::eventBus->register_handler<RegisterModulesEvent>(registerPluginsHandler);
}
static void registerPluginsHandler(const RegisterModulesEvent &evt)
{
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)