WSF
WsfScriptEvent.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 WSFEXECUTESCRIPTEVENT_HPP
13#define WSFEXECUTESCRIPTEVENT_HPP
14
15#include "wsf_export.h"
16
17#include "UtScriptData.hpp"
18#include "WsfEvent.hpp"
19#include "WsfStringId.hpp"
20class WsfPlatform;
23
26{
27public:
28 WsfScriptEvent() = default;
29 WsfScriptEvent(double aSimTime, WsfPlatform* aPlatformPtr, WsfStringId aScriptName, const UtScriptDataList& aScriptArgs);
30
31 WsfScriptEvent(double aSimTime,
32 WsfScriptProcessor* aProcessorPtr,
33 WsfStringId aScriptName,
34 const UtScriptDataList& aScriptArgs);
35
36 WsfScriptEvent(double aSimTime, WsfSimulation* aSimulationPtr, WsfStringId aScriptName, const UtScriptDataList& aScriptArgs);
37
38 EventDisposition Execute() override;
39
40private:
43 size_t mPlatformIndex{0};
44
47 WsfStringId mProcessorNameId;
48
50 WsfStringId mScriptName;
51
53 UtScriptDataList mScriptArgs;
54};
55
56#endif
ut::script::DataList UtScriptDataList
Definition WsfScriptContext.hpp:48
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
virtual EventDisposition Execute()=0
WsfEvent()=default
EventDisposition
Definition WsfEvent.hpp:37
Platforms represent a entity within the simulation.
Definition WsfPlatform.hpp:115
WsfScriptEvent()=default
Provides the overall management of the scripting capability within the application and scenarios.
Definition WsfScriptManager.hpp:31
Definition WsfScriptProcessor.hpp:43
The main controller for a simulation.
Definition WsfSimulation.hpp:109
Copyrights Multiple, All Rights Reserved