rename the sequence receiver

This commit is contained in:
Sven Czarnian
2021-11-13 23:01:12 +01:00
parent 8b1292c95a
commit a3ef28ae39
4 changed files with 59 additions and 39 deletions

View File

@@ -15,7 +15,7 @@
#include <Shlwapi.h>
#include <Windows.h>
#include <aman/com/AircraftScheduler.h>
#include <aman/com/BackendReceiver.h>
#include <aman/com/BackendNotification.h>
#include <aman/config/CommunicationFileFormat.h>
#include <aman/config/IdentifierFileFormat.h>
@@ -62,20 +62,20 @@ PlugIn::PlugIn() :
ZmqContext::instance().initialize();
if (false == AircraftReporter::instance().initialize(this->m_configuration)) {
if (false == BackendNotification::instance().initialize(this->m_configuration)) {
this->DisplayUserMessage(PLUGIN_NAME, "ERROR", "Unable to initialize the reporter-connection to the backend", true, true, true, true, true);
return;
}
if (false == AircraftScheduler::instance().initialize(this->m_configuration)) {
if (false == BackendReceiver::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();
BackendNotification::instance().deinitialize();
return;
}
}
PlugIn::~PlugIn() noexcept {
AircraftScheduler::instance().deinitialize();
BackendReceiver::instance().deinitialize();
BackendNotification::instance().deinitialize();
ZmqContext::instance().deinitialize();
google::protobuf::ShutdownProtobufLibrary();