WSF
WsfEventPipePartUpdateEvent.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 WSFEVENTPIPEPARTUPDATEEVENT_HPP
13#define WSFEVENTPIPEPARTUPDATEEVENT_HPP
14
15#include "WsfEvent.hpp"
16
19
20#include "WsfStringId.hpp"
21
22// ================================================================================================
23// ================================================================================================
24namespace wsf
25{
26namespace eventpipe
27{
28// this is to update the articulation at some rate
30{
31public:
32 PartUpdateEvent(WsfEventPipeInterface* aInterfacePtr, const WsfArticulatedPart* aPartPtr, double aSimTime, double aUpdateRate);
33
34 EventDisposition Execute() override;
35
36 void DeleteLater() { mDeleteLater = true; }
37
38private:
39 void ExecutePrivate();
40
41 double mUpdateRate;
42 WsfEventPipeInterface* mInterfacePtr;
43 size_t mPlatformId;
44 WsfStringId mPartNameId;
45 bool mDeleteLater;
46};
47} // namespace eventpipe
48} // namespace wsf
49
50
51#endif
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
Definition WsfArticulatedPart.hpp:36
Definition WsfEventPipeInterface.hpp:87
WsfEvent()=default
EventDisposition
Definition WsfEvent.hpp:37
void DeleteLater()
Definition WsfEventPipePartUpdateEvent.hpp:36
PartUpdateEvent(WsfEventPipeInterface *aInterfacePtr, const WsfArticulatedPart *aPartPtr, double aSimTime, double aUpdateRate)
Definition WsfEventPipePartUpdateEvent.cpp:18
EventDisposition Execute() override
Definition WsfEventPipePartUpdateEvent.cpp:31
Definition WsfEventPipeEventIds.hpp:18
Function definitions for those who need run-time access to the version.
Definition WsfComm.cpp:32
Copyrights Multiple, All Rights Reserved