WSF
WsfPlatformObserver.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 WSFPLATFORMOBSERVER_HPP
13#define WSFPLATFORMOBSERVER_HPP
14
15#include <string>
16
17#include "UtCallback.hpp"
18class WsfCallback;
19#include "wsf_export.h"
20class WsfMessage;
21class WsfPlatform;
22class WsfRoute;
23class WsfTrack;
24class WsfSimulation;
25
26namespace WsfObserver
27{
28
31{
34 // The following two items allow for a maximum of 100 signature types.
39};
40
41using CommentCallback = UtCallbackListN<void(double, WsfPlatform*, const std::string&)>;
42using CrashedIntoGroundCallback = UtCallbackListN<void(double, WsfPlatform*)>;
43using ExecuteCallbackCallback = UtCallbackListN<void(double, WsfPlatform*, const WsfCallback&)>;
44using GroupAddedCallback = UtCallbackListN<void(const std::string&, const std::string&)>;
45using NavigationStatusChangedCallback = UtCallbackListN<void(double, WsfPlatform*, const std::string&)>;
46using PlatformAppearanceChangedCallback = UtCallbackListN<void(double, WsfPlatform*, AppearanceType)>;
47using PlatformAddedCallback = UtCallbackListN<void(double, WsfPlatform*)>;
48using PlatformBrokenCallback = UtCallbackListN<void(double, WsfPlatform*)>;
49using PlatformDamageChangedCallback = UtCallbackListN<void(double, WsfPlatform*)>;
50using PlatformDeletedCallback = UtCallbackListN<void(double, WsfPlatform*)>;
51using PlatformInitializedCallback = UtCallbackListN<void(double, WsfPlatform*)>;
52using PlatformOmittedCallback = UtCallbackListN<void(double, WsfPlatform*)>;
53
66} // namespace WsfObserver
67
147
148#endif
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Definition WsfCallback.hpp:27
A base class for messages sent among simulation communication objects, processors and sensors.
Definition WsfMessage.hpp:33
Platforms represent a entity within the simulation.
Definition WsfPlatform.hpp:115
A collection of WsfWaypoint objects that represent a path to be followed.
Definition WsfRoute.hpp:40
The main controller for a simulation.
Definition WsfSimulation.hpp:109
An object that represents an 'track' (perception) of something.
Definition WsfTrack.hpp:120
Observer definitions for cyber events.
Definition WsfAdvancedBehaviorObserver.hpp:22
AppearanceType
The type of data being changed in the PlatformAppearanceChanged callback.
Definition WsfPlatformObserver.hpp:31
@ cSIGNATURE_SCALE_FACTOR_LIMIT
Limiting index of signature scale factor changes.
Definition WsfPlatformObserver.hpp:38
@ cSIGNATURE_STATE_LIMIT
Limiting index of signature state changes.
Definition WsfPlatformObserver.hpp:36
@ cAPPEARANCE_WORD
Definition WsfPlatformObserver.hpp:32
@ cSIGNATURE_SCALE_FACTOR_START
Starting index of signature scale factor changes.
Definition WsfPlatformObserver.hpp:37
@ cSIGNATURE_STATE_START
Starting index of signature state changes.
Definition WsfPlatformObserver.hpp:35
@ cCONCEALMENT_FACTOR
Definition WsfPlatformObserver.hpp:33
UtCallbackListN< void(double, WsfPlatform *)> CrashedIntoGroundCallback
Definition WsfPlatformObserver.hpp:42
WSF_EXPORT CommentCallback & Comment(const WsfSimulation *aSimulationPtr)
UtCallbackListN< void(double, WsfPlatform *, const std::string &)> NavigationStatusChangedCallback
Definition WsfPlatformObserver.hpp:45
UtCallbackListN< void(double, WsfPlatform *, const WsfCallback &)> ExecuteCallbackCallback
Definition WsfPlatformObserver.hpp:43
WSF_EXPORT PlatformInitializedCallback & PlatformInitialized(const WsfSimulation *aSimulationPtr)
WSF_EXPORT PlatformOmittedCallback & PlatformOmitted(const WsfSimulation *aSimulationPtr)
WSF_EXPORT PlatformAddedCallback & PlatformAdded(const WsfSimulation *aSimulationPtr)
UtCallbackListN< void(double, WsfPlatform *, const std::string &)> CommentCallback
Definition WsfPlatformObserver.hpp:41
WSF_EXPORT CrashedIntoGroundCallback & CrashedIntoGround(const WsfSimulation *aSimulationPtr)
WSF_EXPORT PlatformBrokenCallback & PlatformBroken(const WsfSimulation *aSimulationPtr)
WSF_EXPORT NavigationStatusChangedCallback & NavigationStatusChanged(const WsfSimulation *aSimulationPtr)
UtCallbackListN< void(const std::string &, const std::string &)> GroupAddedCallback
Definition WsfPlatformObserver.hpp:44
WSF_EXPORT ExecuteCallbackCallback & ExecuteCallback(const WsfSimulation *aSimulationPtr)
UtCallbackListN< void(double, WsfPlatform *)> PlatformOmittedCallback
Definition WsfPlatformObserver.hpp:52
UtCallbackListN< void(double, WsfPlatform *)> PlatformBrokenCallback
Definition WsfPlatformObserver.hpp:48
UtCallbackListN< void(double, WsfPlatform *)> PlatformAddedCallback
Definition WsfPlatformObserver.hpp:47
WSF_EXPORT PlatformDeletedCallback & PlatformDeleted(const WsfSimulation *aSimulationPtr)
WSF_EXPORT GroupAddedCallback & GroupAdded(const WsfSimulation *aSimulationPtr)
UtCallbackListN< void(double, WsfPlatform *, AppearanceType)> PlatformAppearanceChangedCallback
Definition WsfPlatformObserver.hpp:46
WSF_EXPORT PlatformDamageChangedCallback & PlatformDamageChanged(const WsfSimulation *aSimulationPtr)
WSF_EXPORT PlatformAppearanceChangedCallback & PlatformAppearanceChanged(const WsfSimulation *aSimulationPtr)
UtCallbackListN< void(double, WsfPlatform *)> PlatformDamageChangedCallback
Definition WsfPlatformObserver.hpp:49
UtCallbackListN< void(double, WsfPlatform *)> PlatformInitializedCallback
Definition WsfPlatformObserver.hpp:51
UtCallbackListN< void(double, WsfPlatform *)> PlatformDeletedCallback
Definition WsfPlatformObserver.hpp:50
Definition WsfPlatformObserver.hpp:71
WsfObserver::CrashedIntoGroundCallback CrashedIntoGround
Definition WsfPlatformObserver.hpp:77
WsfObserver::PlatformAppearanceChangedCallback PlatformAppearanceChanged
Definition WsfPlatformObserver.hpp:112
WsfObserver::GroupAddedCallback GroupAdded
Definition WsfPlatformObserver.hpp:88
WsfObserver::PlatformBrokenCallback PlatformBroken
Definition WsfPlatformObserver.hpp:118
WsfObserver::NavigationStatusChangedCallback NavigationStatusChanged
Definition WsfPlatformObserver.hpp:94
WsfObserver::PlatformDamageChangedCallback PlatformDamageChanged
Definition WsfPlatformObserver.hpp:123
WsfObserver::PlatformDeletedCallback PlatformDeleted
Definition WsfPlatformObserver.hpp:131
WsfObserver::PlatformAddedCallback PlatformAdded
Definition WsfPlatformObserver.hpp:106
WsfObserver::ExecuteCallbackCallback ExecuteCallback
Definition WsfPlatformObserver.hpp:83
WsfObserver::PlatformInitializedCallback PlatformInitialized
Definition WsfPlatformObserver.hpp:138
WsfObserver::PlatformOmittedCallback PlatformOmitted
Definition WsfPlatformObserver.hpp:145
WsfObserver::CommentCallback Comment
Definition WsfPlatformObserver.hpp:72
Copyrights Multiple, All Rights Reserved