WSF
WsfPlatformPartEvent.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 WSFPLATFORMPARTEVENT_HPP
13#define WSFPLATFORMPARTEVENT_HPP
14
15#include "wsf_export.h"
16
17#include <cstddef>
18
19#include "UtReferenceCount.hpp"
20#include "WsfEvent.hpp"
21class WsfPlatformPart;
22
27{
28public:
35
37 WsfPlatformPartEvent(double aSimTime, EventType aEventType, WsfPlatformPart* aPartPtr);
38
39 EventDisposition Execute() override;
40
41private:
42 EventType mEventType;
43 size_t mPlatformIndex;
44 UtWeakReference<WsfPlatformPart> mPartPtr;
45 unsigned int mUpdateEventEpoch;
46};
47
48#endif
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
virtual EventDisposition Execute()=0
WsfEvent()=default
EventDisposition
Definition WsfEvent.hpp:37
EventType
Definition WsfPlatformPartEvent.hpp:30
@ cUPDATE
Call the sensors Update() method.
Definition WsfPlatformPartEvent.hpp:31
@ cTURN_OFF
Turn the sensor off.
Definition WsfPlatformPartEvent.hpp:32
@ cTURN_ON
Turn the sensor on.
Definition WsfPlatformPartEvent.hpp:33
WsfPlatformPartEvent()=delete
Definition WsfPlatformPart.hpp:61
Copyrights Multiple, All Rights Reserved