WSF
JMessage.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI//REL TO USA ONLY
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#ifndef L16_JMESSAGE_HPP
12#define L16_JMESSAGE_HPP
13
14#include <memory>
15
16#include "Messages.hpp"
17#include "WsfMessage.hpp"
18
19namespace WsfL16
20{
23class JMessage : public WsfMessage
24{
25public:
26 typedef std::shared_ptr<const Messages::InitialBase> MessagePtr;
27
28 JMessage(MessagePtr aMessage, WsfPlatform* aPlatformPtr);
29 JMessage(const JMessage& aSrc);
30 ~JMessage() override;
31
32 WsfMessage* Clone() const override;
34
36 MessagePtr Get() { return mMessagePtr; }
37
38 const MessagePtr Get() const { return mMessagePtr; }
39
40 static WsfStringId GetTypeId();
41
42private:
43 void Destroy();
44 MessagePtr mMessagePtr;
45};
46} // namespace WsfL16
47
48#endif
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
std::shared_ptr< const Messages::InitialBase > MessagePtr
Definition JMessage.hpp:26
JMessage & operator=(JMessage &aMsg)
Definition JMessage.cpp:44
WsfMessage * Clone() const override
Definition JMessage.cpp:39
const MessagePtr Get() const
Definition JMessage.hpp:38
JMessage(MessagePtr aMessage, WsfPlatform *aPlatformPtr)
Definition JMessage.cpp:21
MessagePtr Get()
Returns the message.
Definition JMessage.hpp:36
~JMessage() override
Definition JMessage.cpp:31
static WsfStringId GetTypeId()
Definition JMessage.cpp:34
WsfMessage(WsfStringId aType)
Constructor for XIO (de)serialization.
Definition WsfMessage.cpp:25
Platforms represent a entity within the simulation.
Definition WsfPlatform.hpp:115
This file should be included prior to defining a message. Currently there is a limit of 32 fields per...
Definition AllMessages.hpp:55
Copyrights Multiple, All Rights Reserved