Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
openlcb::MemoryConfigClientWithStream::DefaultSink Struct Reference

Stores incoming stream data into the request()->payload object (which is a string). More...

#include <MemoryConfigClient.hxx>

Inheritance diagram for openlcb::MemoryConfigClientWithStream::DefaultSink:
FlowInterface< ByteBuffer >

Public Member Functions

 DefaultSink (MemoryConfigClientWithStream *parent)
 
void send (ByteBuffer *msg, unsigned prio) override
 Entry point to the flow.
 
- Public Member Functions inherited from FlowInterface< ByteBuffer >
virtual Poolpool ()
 
virtual ByteBuffertype_helper ()
 This function is never user in the code, but GDB can use it to infer the correct message types.
 
ByteBufferalloc ()
 Synchronously allocates a message buffer from the pool of this flow.
 
void alloc_async (Executable *target)
 Asynchronously allocates a message buffer from the pool of this flow.
 

Public Attributes

MemoryConfigClientWithStreamparent_
 

Additional Inherited Members

- Public Types inherited from FlowInterface< ByteBuffer >
typedef ByteBuffer message_type
 Stores the message template type for external reference.
 
- Static Public Member Functions inherited from FlowInterface< ByteBuffer >
static ByteBuffercast_alloc (QMember *entry)
 Down casts and initializes an asynchronous allocation result to the appropriate flow's buffer type.
 

Detailed Description

Stores incoming stream data into the request()->payload object (which is a string).

Definition at line 997 of file MemoryConfigClient.hxx.

Constructor & Destructor Documentation

◆ DefaultSink()

openlcb::MemoryConfigClientWithStream::DefaultSink::DefaultSink ( MemoryConfigClientWithStream parent)
inline

Definition at line 999 of file MemoryConfigClient.hxx.

Member Function Documentation

◆ send()

void openlcb::MemoryConfigClientWithStream::DefaultSink::send ( ByteBuffer message,
unsigned  priority 
)
inlineoverridevirtual

Entry point to the flow.

Users of the flow should call this mehtod to send a buffer to the flow.

Parameters
messagebuffer to send to the flow
prioritywhich priority back the flow should process it. Lower numbers mean process earlier.

Implements FlowInterface< ByteBuffer >.

Definition at line 1003 of file MemoryConfigClient.hxx.

Member Data Documentation

◆ parent_

MemoryConfigClientWithStream* openlcb::MemoryConfigClientWithStream::DefaultSink::parent_

Definition at line 1014 of file MemoryConfigClient.hxx.


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