WSF
src
core
wsf
source
script
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
"
20
class
WsfPlatform
;
21
class
WsfScriptProcessor
;
22
class
WsfScriptManager
;
23
25
class
WSF_EXPORT
WsfScriptEvent
:
public
WsfEvent
26
{
27
public
:
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
40
private
:
43
size_t
mPlatformIndex{0};
44
47
WsfStringId
mProcessorNameId;
48
50
WsfStringId
mScriptName;
51
53
UtScriptDataList
mScriptArgs;
54
};
55
56
#endif
WsfEvent.hpp
UtScriptDataList
ut::script::DataList UtScriptDataList
Definition
WsfScriptContext.hpp:48
WsfStringId.hpp
WsfStringId
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition
WsfStringId.hpp:23
WSF_EXPORT
#define WSF_EXPORT
Definition
WsfXIO_Export.hpp:35
WsfEvent::Execute
virtual EventDisposition Execute()=0
WsfEvent::WsfEvent
WsfEvent()=default
WsfEvent::EventDisposition
EventDisposition
Definition
WsfEvent.hpp:37
WsfPlatform
Platforms represent a entity within the simulation.
Definition
WsfPlatform.hpp:115
WsfScriptEvent::WsfScriptEvent
WsfScriptEvent()=default
WsfScriptManager
Provides the overall management of the scripting capability within the application and scenarios.
Definition
WsfScriptManager.hpp:31
WsfScriptProcessor
Definition
WsfScriptProcessor.hpp:43
WsfSimulation
The main controller for a simulation.
Definition
WsfSimulation.hpp:109
Copyrights Multiple, All Rights Reserved