WSF
WsfDisLaserDesignations.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 WSFDISLASERDESIGNATIONS_HPP
13#define WSFDISLASERDESIGNATIONS_HPP
14
15class DisDesignator;
16class DisEntityId;
17
18class UtInput;
19
21#include "wsf_mil_export.h"
22
24class WsfDisInterface;
26
32
33class WSF_MIL_EXPORT WsfDisLaserDesignations
34{
35public:
38
39 bool Initialize();
40 bool ProcessInput(UtInput& aInput);
41 bool DebugEnabled() const { return mDebug; }
42
43private:
44 // External PDU received. Inform WSF of the update.
45 void ProcessPDU(WsfDisInterface* aInterfacePtr, const WsfDisDesignator& aPdu);
46
47 // WSF spot was updated. Send the update externally, if needed.
48 void SpotUpdated(const WsfLaserDesignations::Spot& aSpot);
49
50 // Utility function to populate an WSF Spot from a PDU.
51 void SetSpotFromPduP(WsfLaserDesignations::Spot& aSpot,
52 size_t aDesignatingIndex,
53 size_t aDesignatedIndex,
54 const WsfDisDesignator& aDesignation);
55
56 // Utility function to populate an WSF Spot from a PDU.
57 void SetPduFromSpotP(const WsfLaserDesignations::Spot& aSpot,
58 const DisEntityId& aDesignatingId,
59 const DisEntityId& aDesignatedId,
60 DisDesignator& aDesignation);
61
62
63 bool mDebug;
64 unsigned int mSendCount;
65 unsigned int mReceiveCount;
66 UtCallbackHolder mCallbacks;
67 WsfMilDisInterface* mItarPtr;
68 WsfDisInterface* mDisInterfacePtr;
69 WsfLaserDesignations* mLaserDesignationsPtr;
70 WsfSimulation& mSimulation;
71};
72
73#endif
Definition WsfDisDesignator.hpp:24
Definition WsfDisInterface.hpp:83
bool ProcessInput(UtInput &aInput)
Definition WsfDisLaserDesignations.cpp:58
bool Initialize()
Definition WsfDisLaserDesignations.cpp:50
bool DebugEnabled() const
Definition WsfDisLaserDesignations.hpp:41
WsfDisLaserDesignations(WsfMilDisInterface *aInterfacePtr)
Definition WsfDisLaserDesignations.cpp:31
~WsfDisLaserDesignations()=default
Definition WsfLaserDesignations.hpp:86
Definition WsfLaserDesignations.hpp:83
Definition WsfMilDisInterface.hpp:42
The main controller for a simulation.
Definition WsfSimulation.hpp:109
Copyrights Multiple, All Rights Reserved