Dataflow Runtime API  2.7.4.0
Classes | Public Member Functions | List of all members
imt::base::dff::activeparts::test::ChannelMockOut Class Reference

Mocking output channel for unit test which stores the received data. More...

#include <Imt.Base.Dff.ActiveParts.Test/ChannelMockOut.h>

Inheritance diagram for imt::base::dff::activeparts::test::ChannelMockOut:
imt::base::dff::activeparts::ChannelIfc

Classes

struct  DataContainer
 Structure which stores the received data received on the channel. More...
 

Public Member Functions

 ChannelMockOut (void)
 Constructor.
 
virtual ~ChannelMockOut (void)
 Destructor.
 
virtual void send (const uint16_t protocolIdentifier, const imt::base::core::serialization::SerializableIfc *const pEventData, const int32_t eventDataSizeBytes=imt::base::dff::runtime::EVENTDATA_SIZE_BYTES)
 
void deleteReceivedData (void)
 Deletes all received data.
 
uint32_t numberOfDataItemsReceived (void) const
 Returns the number of received data items. More...
 
const DataContainergetDataItem (const uint32_t index)
 Returns the element at the given index. More...
 
DataContainer popDataItem (void)
 Returns and removes the first element. More...
 
- Public Member Functions inherited from imt::base::dff::activeparts::ChannelIfc
virtual ~ChannelIfc (void)
 Destructor.
 

Detailed Description

Mocking output channel for unit test which stores the received data.

Member Function Documentation

◆ getDataItem()

const DataContainer& imt::base::dff::activeparts::test::ChannelMockOut::getDataItem ( const uint32_t  index)

Returns the element at the given index.

Parameters
indexIndex of the element to be returned.
Returns
Reference to the requested data container.

◆ numberOfDataItemsReceived()

uint32_t imt::base::dff::activeparts::test::ChannelMockOut::numberOfDataItemsReceived ( void  ) const

Returns the number of received data items.

Returns
Number of received data items.

◆ popDataItem()

DataContainer imt::base::dff::activeparts::test::ChannelMockOut::popDataItem ( void  )

Returns and removes the first element.

Returns
First data container.

◆ send()

virtual void imt::base::dff::activeparts::test::ChannelMockOut::send ( const uint16_t  protocolIdentifier,
const imt::base::core::serialization::SerializableIfc *const  pEventData,
const int32_t  eventDataSizeBytes = imt::base::dff::runtime::EVENTDATA_SIZE_BYTES 
)
virtual

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