1- #include " ConcreteSdk .h"
1+ #include " InternalSdk .h"
22#include " InternalSdkEvents.h"
33#include " eventbus/InternalEventBus.h"
44
55namespace ECFMP ::Plugin {
6- ConcreteSdk::ConcreteSdk (std::shared_ptr<EventBus::InternalEventBus> eventBus)
6+ InternalSdk::InternalSdk (std::shared_ptr<EventBus::InternalEventBus> eventBus)
77 : eventBus(std::move(eventBus)),
88 flightInformationRegions (std::make_shared<Api::InternalFlightInformationRegionCollection>()),
99 events(std::make_shared<Api::InternalEventCollection>()),
@@ -12,53 +12,53 @@ namespace ECFMP::Plugin {
1212 assert (this ->eventBus && " Event bus not set in ConcreteSdk" );
1313 }
1414
15- void ConcreteSdk ::Destroy ()
15+ void InternalSdk ::Destroy ()
1616 {
1717 eventBus.reset ();
1818 }
1919
20- auto ConcreteSdk ::EventBus () const noexcept -> EventBus::EventBus&
20+ auto InternalSdk ::EventBus () const noexcept -> EventBus::EventBus&
2121 {
2222 return *eventBus;
2323 }
2424
25- void ConcreteSdk ::OnEuroscopeTimerTick ()
25+ void InternalSdk ::OnEuroscopeTimerTick ()
2626 {
2727 eventBus->OnEvent <EuroscopeTimerTickEvent>(EuroscopeTimerTickEvent{});
2828 }
2929
30- auto ConcreteSdk ::FlightInformationRegions () const noexcept
30+ auto InternalSdk ::FlightInformationRegions () const noexcept
3131 -> std::shared_ptr<const Api::FlightInformationRegionCollection>
3232 {
3333 auto lock = std::lock_guard (mutex);
3434 return flightInformationRegions;
3535 }
3636
37- void ConcreteSdk ::OnEvent (const FlightInformationRegionsUpdatedEvent& event)
37+ void InternalSdk ::OnEvent (const FlightInformationRegionsUpdatedEvent& event)
3838 {
3939 auto lock = std::lock_guard (mutex);
4040 flightInformationRegions = event.firs ;
4141 }
4242
43- auto ConcreteSdk ::Events () const noexcept -> std::shared_ptr<const Api::EventCollection>
43+ auto InternalSdk ::Events () const noexcept -> std::shared_ptr<const Api::EventCollection>
4444 {
4545 auto lock = std::lock_guard (mutex);
4646 return events;
4747 }
4848
49- void ConcreteSdk ::OnEvent (const EventsUpdatedEvent& event)
49+ void InternalSdk ::OnEvent (const EventsUpdatedEvent& event)
5050 {
5151 auto lock = std::lock_guard (mutex);
5252 events = event.events ;
5353 }
5454
55- auto ConcreteSdk ::FlowMeasures () const noexcept -> std::shared_ptr<const Api::FlowMeasureCollection>
55+ auto InternalSdk ::FlowMeasures () const noexcept -> std::shared_ptr<const Api::FlowMeasureCollection>
5656 {
5757 auto lock = std::lock_guard (mutex);
5858 return flowMeasures;
5959 }
6060
61- void ConcreteSdk ::OnEvent (const FlowMeasuresUpdatedEvent& eventType)
61+ void InternalSdk ::OnEvent (const FlowMeasuresUpdatedEvent& eventType)
6262 {
6363 auto lock = std::lock_guard (mutex);
6464 flowMeasures = eventType.flowMeasures ;
0 commit comments