introduce the receiver of the scheduling information

This commit is contained in:
Sven Czarnian
2021-08-19 08:48:08 +02:00
parent 559ab86d60
commit 8230538325

View File

@@ -16,6 +16,7 @@
#include <Windows.h> #include <Windows.h>
#include <aman/com/AircraftReporter.h> #include <aman/com/AircraftReporter.h>
#include <aman/com/AircraftScheduler.h>
#include <aman/config/CommunicationFileFormat.h> #include <aman/config/CommunicationFileFormat.h>
#include <aman/config/IdentifierFileFormat.h> #include <aman/config/IdentifierFileFormat.h>
@@ -64,9 +65,16 @@ PlugIn::PlugIn() :
this->DisplayUserMessage(PLUGIN_NAME, "ERROR", "Unable to initialize the reporter-connection to the backend", true, true, true, true, true); this->DisplayUserMessage(PLUGIN_NAME, "ERROR", "Unable to initialize the reporter-connection to the backend", true, true, true, true, true);
return; return;
} }
if (false == AircraftScheduler::instance().initialize(this->m_configuration)) {
this->DisplayUserMessage(PLUGIN_NAME, "ERROR", "Unable to initialize the scheduling-connection to the backend", true, true, true, true, true);
AircraftReporter::instance().deinitialize();
return;
}
} }
PlugIn::~PlugIn() noexcept { PlugIn::~PlugIn() noexcept {
AircraftScheduler::instance().deinitialize();
AircraftReporter::instance().deinitialize(); AircraftReporter::instance().deinitialize();
ZmqContext::instance().deinitialize(); ZmqContext::instance().deinitialize();
google::protobuf::ShutdownProtobufLibrary(); google::protobuf::ShutdownProtobufLibrary();