WSF
WsfAtmosphereSimulationExtension.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2020 Infoscitex, a DCS Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef WSFATMOSPHERESIMULATIONEXTENSION_HPP
13#define WSFATMOSPHERESIMULATIONEXTENSION_HPP
14
15#include <map>
16#include <string>
17
18#include "UtCloneablePtr.hpp"
19#include "WsfAtmosphere.hpp"
21
22class UtInput;
23
24namespace wsf
25{
26namespace space
27{
28
30
32{
33public:
36 , mScenarioExtension(aScenarioExtension)
37 {
38 }
40 ~AtmosphereSimulationExtension() override = default;
41
42 AtmosphereSimulationExtension* Clone() const override { return new AtmosphereSimulationExtension{*this}; }
43
44 bool ProcessInput(UtInput& aInput) override;
45
46 Atmosphere* GetAtmosphere(const std::string& aModelName) const;
47
48 static const AtmosphereSimulationExtension& Get(const WsfSimulation& aSimulation);
49
50private:
51 const AtmosphereScenarioExtension& mScenarioExtension;
52 std::map<std::string, ut::CloneablePtr<Atmosphere>> mModels{};
53};
54
55} // namespace space
56} // namespace wsf
57
58#endif // WSFATMOSPHERESIMULATIONEXTENSION_HPP
The main controller for a simulation.
Definition WsfSimulation.hpp:109
Definition WsfAtmosphereScenarioExtension.hpp:23
Definition WsfAtmosphereSimulationExtension.hpp:32
AtmosphereSimulationExtension(const AtmosphereSimulationExtension &aOther)=default
static const AtmosphereSimulationExtension & Get(const WsfSimulation &aSimulation)
Definition WsfAtmosphereSimulationExtension.cpp:79
AtmosphereSimulationExtension * Clone() const override
Definition WsfAtmosphereSimulationExtension.hpp:42
bool ProcessInput(UtInput &aInput) override
Definition WsfAtmosphereSimulationExtension.cpp:28
~AtmosphereSimulationExtension() override=default
AtmosphereSimulationExtension(const AtmosphereScenarioExtension &aScenarioExtension)
Definition WsfAtmosphereSimulationExtension.hpp:34
Atmosphere * GetAtmosphere(const std::string &aModelName) const
Definition WsfAtmosphereSimulationExtension.cpp:68
Definition WsfAtmosphere.hpp:30
Definition WsfAtmosphere.cpp:23
Function definitions for those who need run-time access to the version.
Definition WsfComm.cpp:32
Copyrights Multiple, All Rights Reserved