WSF
WsfWeaponLAR.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 2003-2015 The Boeing 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 WSFWEAPONLAR_HPP
13#define WSFWEAPONLAR_HPP
14
15#include "wsf_mil_export.h"
16
17class UtInput;
18#include "WsfObject.hpp"
19class WsfSimulation;
20
27
28class WSF_MIL_EXPORT WsfWeaponLAR : public WsfObject
29{
30public:
32 ~WsfWeaponLAR() override = default;
33 WsfWeaponLAR* Clone() const override = 0;
34
35 static std::string GetTypeString() { return "WSF_WEAPON_LAR"; }
36
38 bool DebugEnabled() const { return mDebugEnabled; }
39 void SetDebugEnabled(bool aDebugEnabled) { mDebugEnabled = aDebugEnabled; }
40
41 bool ProcessInput(UtInput& aInput) override;
42 virtual bool Initialize(WsfSimulation& aSimulation);
43
44 static bool LoadInstance(UtInput& aInput, WsfWeaponLAR*& aLARPtr);
45
46 WsfSimulation* GetSimulation() const { return mSimulationPtr; }
47
48protected:
49 // Copy constructor (for Clone())
50 WsfWeaponLAR(const WsfWeaponLAR& aSrc) = default;
51
52 // Prevent use of operator= by declaring, but not defining.
53 WsfWeaponLAR& operator=(const WsfWeaponLAR& aRhs) = delete;
54
55private:
56 WsfSimulation* mSimulationPtr;
57 bool mDebugEnabled;
58};
59
60#endif
WsfObject()
This is the constructor for the WsfObject class.
Definition WsfObject.cpp:88
virtual bool ProcessInput(UtInput &aInput)
Definition WsfObject.cpp:140
The main controller for a simulation.
Definition WsfSimulation.hpp:109
An abstract class for specifying Weapon Launch Acceptable Regions (LARs).
Definition WsfWeaponLAR.hpp:29
WsfWeaponLAR()
Definition WsfWeaponLAR.cpp:20
static std::string GetTypeString()
Definition WsfWeaponLAR.hpp:35
void SetDebugEnabled(bool aDebugEnabled)
Definition WsfWeaponLAR.hpp:39
WsfWeaponLAR * Clone() const override=0
bool DebugEnabled() const
Returns 'true' if debugging is enabled for this instance.
Definition WsfWeaponLAR.hpp:38
~WsfWeaponLAR() override=default
WsfWeaponLAR & operator=(const WsfWeaponLAR &aRhs)=delete
WsfSimulation * GetSimulation() const
Definition WsfWeaponLAR.hpp:46
WsfWeaponLAR(const WsfWeaponLAR &aSrc)=default
Copyrights Multiple, All Rights Reserved