WSF
wsf::comm::PresentationLayer Class Reference

#include <WsfCommPresentationLayer.hpp>

Inheritance diagram for wsf::comm::PresentationLayer:
Collaboration diagram for wsf::comm::PresentationLayer:

Public Member Functions

 PresentationLayer ()
 ~PresentationLayer () override=default
Public Member Functions inherited from wsf::comm::LayerImp
virtual ~LayerImp ()=default
void SetUpperLayer (Layer *aLayerPtr)
LayerGetUpperLayer () const
void SetLowerLayer (Layer *aLayerPtr)
LayerGetLowerLayer () const
bool DebugEnabled () const
 Determine if debugging is enabled.
void SetDebugEnabled (bool aDebugEnabled)
virtual bool Initialize2 (double aSimTime)
CommParent () const
void SetParent (Comm *aParentCommPtr)
void SetIndex (size_t aIndex)
size_t GetIndex () const

Common infrastructure methods.

LayerImpClone () const override
bool Initialize (double aSimTime) override
bool ProcessInput (UtInput &aInput) override

Send/Receive methods

bool Receive (double aSimTime, Comm *aXmtrPtr, Message &aMessage, bool &aNotifyNextLayer) override
bool Send (double aSimTime, size_t aLayerIndex, Message &aMessage, bool &aNotifyNextLayer) override

Comm event methods.

bool ProcessLayerMessage (double aSimTime, layer::Message aLayerMessage, Message *aCommMessagePtr) override
 Process a layer event.
 PresentationLayer (const PresentationLayer &aSrc)

Constructor & Destructor Documentation

◆ PresentationLayer() [1/2]

wsf::comm::PresentationLayer::PresentationLayer ( )
inline

Referenced by Clone(), and PresentationLayer().

◆ ~PresentationLayer()

wsf::comm::PresentationLayer::~PresentationLayer ( )
overridedefault

References Clone().

◆ PresentationLayer() [2/2]

wsf::comm::PresentationLayer::PresentationLayer ( const PresentationLayer & aSrc)
inlineprotected

References PresentationLayer().

Member Function Documentation

◆ Clone()

LayerImp * wsf::comm::PresentationLayer::Clone ( ) const
overridevirtual

Implements wsf::comm::LayerImp.

References PresentationLayer().

Referenced by ~PresentationLayer().

◆ Initialize()

bool wsf::comm::PresentationLayer::Initialize ( double aSimTime)
inlineoverridevirtual

Implements wsf::comm::LayerImp.

◆ ProcessInput()

bool wsf::comm::PresentationLayer::ProcessInput ( UtInput & aInput)
inlineoverridevirtual

Implements wsf::comm::LayerImp.

◆ ProcessLayerMessage()

◆ Receive()

bool wsf::comm::PresentationLayer::Receive ( double aSimTime,
Comm * aXmtrPtr,
Message & aMessage,
bool & aNotifyNextLayer )
overridevirtual

Receive the message in this layer.

Parameters
aSimTime[input] The current simulation time.
aXmtrPtr[input] The comm device that sent the message.
aMessage[input] The communication message being received.
aNotifyNextLayer[output] True if the next layer above this one should immediately process this message.
Returns
'true' if layer successfully processed the message.

Implements wsf::comm::LayerImp.

References wsf::comm::LayerImp::GetIndex(), wsf::comm::Comm::GetSortedProtocols(), wsf::comm::LayerImp::Parent(), and success.

◆ Send()

bool wsf::comm::PresentationLayer::Send ( double aSimTime,
size_t aLayerIndex,
Message & aMessage,
bool & aNotifyNextLayer )
overridevirtual

Send the message to this layer.

Parameters
aSimTime[input] The current simulation time.
aLayerIndex[input] The index in the protocol stack for this layer.
aMessage[input] The communication message being received.
aNotifyNextLayer[output] True if the next layer below this one should immediately process this message.
Returns
'true' if layer successfully processed the message.

Implements wsf::comm::LayerImp.

References wsf::comm::LayerImp::GetIndex(), wsf::comm::Comm::GetSortedProtocols(), wsf::comm::LayerImp::Parent(), and success.


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved