WSF
WsfTrackNotifyMessage.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 WSFTRACKNOTIFYMESSAGE_HPP
13#define WSFTRACKNOTIFYMESSAGE_HPP
14
15#include "wsf_export.h"
16
17#include <memory>
18
19class UtScriptClass;
20class UtScriptTypes;
21#include "WsfMessage.hpp"
22#include "WsfTrackId.hpp"
23
32{
33public:
35 const WsfTrackId& aTrackId,
36 WsfStringId aTrackProcessorNameId,
37 int aChangedReason);
38
39 ~WsfTrackNotifyMessage() override;
40
41 WsfMessage* Clone() const override { return new WsfTrackNotifyMessage(*this); }
42
43 const char* GetScriptClassName() const override;
44
45 static std::unique_ptr<UtScriptClass> CreateScriptClass(const std::string& aClassName, UtScriptTypes* aScriptTypesPtr);
46
49 const WsfTrackId& GetTrackId() const { return mTrackId; }
50
53 WsfStringId GetTrackProcessorNameId() const { return mTrackProcessorNameId; }
54
57 int GetChangedReason() const { return mChangedReason; }
58
59 static WsfStringId GetTypeId();
60
61 template<typename T>
62 void Serialize(T& aBuff)
63 {
64 aBuff& mTrackId& mChangedReason;
65 }
66
67private:
68 WsfTrackId mTrackId;
69 WsfStringId mTrackProcessorNameId;
70 int mChangedReason;
71};
72
73#endif
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
WsfMessage(WsfStringId aType)
Constructor for XIO (de)serialization.
Definition WsfMessage.cpp:25
const char * GetScriptClassName() const override
Definition WsfMessage.cpp:235
static WsfStringId GetTypeId()
Definition WsfMessage.cpp:159
Platforms represent a entity within the simulation.
Definition WsfPlatform.hpp:115
Definition WsfTrackId.hpp:33
int GetChangedReason() const
Definition WsfTrackNotifyMessage.hpp:57
void Serialize(T &aBuff)
Definition WsfTrackNotifyMessage.hpp:62
WsfStringId GetTrackProcessorNameId() const
Definition WsfTrackNotifyMessage.hpp:53
WsfMessage * Clone() const override
Definition WsfTrackNotifyMessage.hpp:41
WsfTrackNotifyMessage(WsfPlatform *aPlatformPtr, const WsfTrackId &aTrackId, WsfStringId aTrackProcessorNameId, int aChangedReason)
Constructor.
Definition WsfTrackNotifyMessage.cpp:27
const WsfTrackId & GetTrackId() const
Definition WsfTrackNotifyMessage.hpp:49
Copyrights Multiple, All Rights Reserved