WSF
FiresObserver.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI//REL TO USA ONLY
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 FIRES_OBSERVER_HPP
13#define FIRES_OBSERVER_HPP
14
15#include "wsf_fires_export.h"
16
17#include <map>
18
19#include "UtCallbackHolder.hpp"
20class UtInput;
21class WsfDisFire;
22class WsfDisSignal;
23#include "WsfDraw.hpp"
24class WsfPlatform;
25class WsfSimulation;
26class WsfTrack;
28
29namespace Fires
30{
34class WSF_FIRES_EXPORT Observer
35{
36public:
37 explicit Observer(WsfSimulation* aSimPtr);
38 virtual ~Observer();
39
40 void WeaponFired(double aSimTime, const WsfWeaponEngagement* aEngagementPtr, const WsfTrack* aTargetTrackPtr);
41
42 void WeaponTerminated(double aSimTime, const WsfWeaponEngagement* aEngagementPtr);
43
44private:
45 WsfSimulation* mSimPtr;
46 WsfDraw mDraw;
47 std::map<unsigned int, size_t> mEngagementMap;
48 UtCallbackHolder mCallbacks;
49};
50}; // namespace Fires
51#endif
void WeaponTerminated(double aSimTime, const WsfWeaponEngagement *aEngagementPtr)
Definition FiresObserver.cpp:114
Observer(WsfSimulation *aSimPtr)
Definition FiresObserver.cpp:32
void WeaponFired(double aSimTime, const WsfWeaponEngagement *aEngagementPtr, const WsfTrack *aTargetTrackPtr)
Definition FiresObserver.cpp:42
Definition WsfDisFire.hpp:24
Definition WsfDisSignal.hpp:24
Provides the capability to draw shapes into the WSF replay file.
Definition WsfDraw.hpp:35
Platforms represent a entity within the simulation.
Definition WsfPlatform.hpp:115
The main controller for a simulation.
Definition WsfSimulation.hpp:109
An object that represents an 'track' (perception) of something.
Definition WsfTrack.hpp:120
Definition WsfWeaponEngagement.hpp:43
Provide a top-level interface for including the fires library's types.
Definition BallisticPath.cpp:34
Copyrights Multiple, All Rights Reserved