Dataflow Runtime API  2.7.4.0
Public Member Functions | Static Public Attributes | List of all members
imt::base::dff::activeparts::ChannelOneToWindowsMsgQueue Class Reference

Send the message on a One-to-Windows Message Queue channel. More...

#include <Imt.Base.Dff.ActiveParts.WinEC7/ChannelOneToWindowsMsgQueue.h>

Inheritance diagram for imt::base::dff::activeparts::ChannelOneToWindowsMsgQueue:
imt::base::dff::activeparts::ChannelIfc

Public Member Functions

 ChannelOneToWindowsMsgQueue (void)
 Constructor.
 
virtual ~ChannelOneToWindowsMsgQueue (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)
 Send the given data to receiver through the scheduler. More...
 
void connectPorts (PortOutput &portOut, const HWND handle)
 Connector output port with window handle. More...
 
HWND getHandle () const
 Returns the windows handle. More...
 
- Public Member Functions inherited from imt::base::dff::activeparts::ChannelIfc
virtual ~ChannelIfc (void)
 Destructor.
 

Static Public Attributes

static const uint32_t WINDOWS_MESSAGE_IDENTIFIER = static_cast<uint32_t>(WM_APP) + 734U
 Windows Message Identifier for this Channel (0x82DE). More...
 

Detailed Description

Send the message on a One-to-Windows Message Queue channel.

This channel ensures that any given message can be synchronized into the blocking Win32 UI thread in the order it has been placed.

Member Function Documentation

◆ connectPorts()

void imt::base::dff::activeparts::ChannelOneToWindowsMsgQueue::connectPorts ( PortOutput portOut,
const HWND  handle 
)

Connector output port with window handle.

Remarks: only call this once, else the old receiver gets overwritten. Hint: To get the window handle of a Silverlight for Windows Embedded application: HWND handle; IXRVisualHostPtr pVisualHost; App::GetVisualHost(&pVisualHost); pVisualHost->GetContainerHWND(&handle);

◆ getHandle()

HWND imt::base::dff::activeparts::ChannelOneToWindowsMsgQueue::getHandle ( ) const

Returns the windows handle.

Returns
Windows handle.

◆ send()

virtual void imt::base::dff::activeparts::ChannelOneToWindowsMsgQueue::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

Send the given data to receiver through the scheduler.

Parameters
protocolIdentifieridentifier of protocol, is required for the receiver.
pEventDatapointer to serializable event data, can also be NULL.
eventDataSizeBytesMax number of bytes of serialized event data.

Implements imt::base::dff::activeparts::ChannelIfc.

Member Data Documentation

◆ WINDOWS_MESSAGE_IDENTIFIER

const uint32_t imt::base::dff::activeparts::ChannelOneToWindowsMsgQueue::WINDOWS_MESSAGE_IDENTIFIER = static_cast<uint32_t>(WM_APP) + 734U
static

Windows Message Identifier for this Channel (0x82DE).

Message numbers in the third range (0x8000 through 0xBFFF) are available for applications to use as private messages. Messages in this range do not conflict with system messages.


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