swift
simulatorfsxfactory.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_SIMPLUGIN_SIMULATOR_FSXFACTORY_H
7 #define SWIFT_SIMPLUGIN_SIMULATOR_FSXFACTORY_H
8 
9 #include <QObject>
10 #include <QtPlugin>
11 
12 #include "core/simulator.h"
14 
15 namespace swift::simplugin::fsx
16 {
19  {
20  Q_OBJECT
21  Q_PLUGIN_METADATA(IID "org.swift-project.swift_core.simulatorinterface" FILE "simulatorfsx.json")
22  Q_INTERFACES(swift::core::ISimulatorFactory)
23 
24  public:
26  virtual swift::core::ISimulator *
30  swift::misc::network::IClientProvider *clientProvider) override;
31 
35  };
36 } // namespace swift::simplugin::fsx
37 
38 #endif // SWIFT_SIMPLUGIN_SIMULATOR_FSXFACTORY_H
Factory pattern class to create instances of ISimulator.
Definition: simulator.h:691
Interface to a simulator.
Definition: simulator.h:59
Interface to a simulator listener.
Definition: simulator.h:630
Direct in memory access to client (network client) data.
Direct threadsafe in memory access to own aircraft.
Direct thread safe in memory access to remote aircraft.
Factory implementation to create CSimulatorFsx instances.
virtual swift::core::ISimulatorListener * createListener(const swift::misc::simulation::CSimulatorPluginInfo &info)
Simulator listener instance.
virtual swift::core::ISimulator * create(const swift::misc::simulation::CSimulatorPluginInfo &info, swift::misc::simulation::IOwnAircraftProvider *ownAircraftProvider, swift::misc::simulation::IRemoteAircraftProvider *remoteAircraftProvider, swift::misc::network::IClientProvider *clientProvider)
Create a new instance of a driver.