WSF
WsfCommPresentationLayer.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 2018 Infoscitex, a DCS 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 WSFCOMMPRESENTATIONLAYER_HPP
13#define WSFCOMMPRESENTATIONLAYER_HPP
14
15#include "wsf_export.h"
16
17// Base class
18#include "WsfCommLayer.hpp"
19
20// Forward declarations
21class WsfPlatform;
22
23namespace wsf
24{
25namespace comm
26{
27
29{
30public:
31 // Constructor and destructor
33 : LayerImp()
34 {
35 }
36 ~PresentationLayer() override = default;
37
39
40 LayerImp* Clone() const override;
41 bool Initialize(double aSimTime) override { return true; }
42 bool ProcessInput(UtInput& aInput) override { return false; }
44
46
47 bool Receive(double aSimTime, Comm* aXmtrPtr, Message& aMessage, bool& aNotifyNextLayer) override;
48
49 bool Send(double aSimTime, size_t aLayerIndex, Message& aMessage, bool& aNotifyNextLayer) override;
51
53
54 bool ProcessLayerMessage(double aSimTime, layer::Message aLayerMessage, Message* aCommMessagePtr) override;
56
57protected:
58 // Copy constructor
60
61private:
63 PresentationLayer& operator=(const PresentationLayer& aRhs) = delete;
64};
65
66} // namespace comm
67} // namespace wsf
68
69#endif
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Platforms represent a entity within the simulation.
Definition WsfPlatform.hpp:115
Definition WsfComm.hpp:43
A base class defining the interface for the implementation classes. (Implementor).
Definition WsfCommLayer.hpp:127
Definition WsfCommMessage.hpp:51
Definition WsfCommPresentationLayer.hpp:29
~PresentationLayer() override=default
PresentationLayer()
Definition WsfCommPresentationLayer.hpp:32
bool Initialize(double aSimTime) override
Definition WsfCommPresentationLayer.hpp:41
LayerImp * Clone() const override
Definition WsfCommPresentationLayer.cpp:31
bool ProcessInput(UtInput &aInput) override
Definition WsfCommPresentationLayer.hpp:42
PresentationLayer(const PresentationLayer &aSrc)
Definition WsfCommPresentationLayer.hpp:59
Definition WsfCommLayerMessage.hpp:36
Definition WsfComm.cpp:34
Function definitions for those who need run-time access to the version.
Definition WsfComm.cpp:32
Copyrights Multiple, All Rights Reserved