Dataflow Runtime API  4.0.1.0
Public Member Functions | Protected Member Functions | List of all members
imt::base::dff::activeparts::PortOutput Class Reference

Messages can be sent on the output port. More...

#include <Imt.Base.Dff.ActiveParts/PortOutput.h>

Inheritance diagram for imt::base::dff::activeparts::PortOutput:
imt::base::core::serialization::SerializableSenderIfc imt::base::dff::activeparts::PortOutputJoin< NumberOfPortsToJoin >

Public Member Functions

 PortOutput ()
 Constructor. More...
 
virtual ~PortOutput ()
 Destructor. More...
 
virtual void write (uint16_t const protocolIdentifier, ::imt::base::core::serialization::SerializableIfc const *const pEventData, size_t const eventDataSizeBytes)
 Write data to port (is sent via the ChannelIfc) More...
 
virtual void setChannel (ChannelIfc &channel)
 Set the channel to transport the message. More...
 
ChannelIfc const * getChannel () const
 Get the read only pointer to the channel. More...
 
- Public Member Functions inherited from imt::base::core::serialization::SerializableSenderIfc
virtual ~SerializableSenderIfc ()
 Destructor. More...
 

Protected Member Functions

ChannelIfcgetChannel ()
 Get the modifiable pointer to the channel. More...
 

Detailed Description

Messages can be sent on the output port.

An ActivePart can have 0 to N output ports.

Constructor & Destructor Documentation

◆ PortOutput()

imt::base::dff::activeparts::PortOutput::PortOutput ( )

Constructor.

◆ ~PortOutput()

virtual imt::base::dff::activeparts::PortOutput::~PortOutput ( )
virtual

Destructor.

Member Function Documentation

◆ getChannel() [1/2]

ChannelIfc* imt::base::dff::activeparts::PortOutput::getChannel ( )
protected

Get the modifiable pointer to the channel.

Returns
Pointer to the channel

◆ getChannel() [2/2]

ChannelIfc const* imt::base::dff::activeparts::PortOutput::getChannel ( ) const

Get the read only pointer to the channel.

Returns
Pointer to the channel

◆ setChannel()

virtual void imt::base::dff::activeparts::PortOutput::setChannel ( ChannelIfc channel)
virtual

Set the channel to transport the message.

Parameters
channelChannel to be set

Reimplemented in imt::base::dff::activeparts::PortOutputJoin< NumberOfPortsToJoin >.

◆ write()

virtual void imt::base::dff::activeparts::PortOutput::write ( uint16_t const  protocolIdentifier,
::imt::base::core::serialization::SerializableIfc const *const  pEventData,
size_t const  eventDataSizeBytes 
)
virtual

Write data to port (is sent via the ChannelIfc)

Parameters
protocolIdentifieridentifier of protocol, is required for the receiver
pEventDatapointer to serializable event data, can also be nullptr
eventDataSizeBytesMaximum size of the serialized event data in bytes. Used to determine whether to use a small or normal event for sending.

Implements imt::base::core::serialization::SerializableSenderIfc.


The documentation for this class was generated from the following file: