Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
openlcb::StreamReceiverCan::StreamDataHandler Class Reference
Inheritance diagram for openlcb::StreamReceiverCan::StreamDataHandler:
FlowInterface< Buffer< CanMessageData > >

Public Member Functions

 StreamDataHandler (StreamReceiverCan *parent)
 
void start (NodeAlias remote_alias, NodeAlias local_alias)
 Starts registration for receiving stream data with the given aliases.
 
void stop ()
 Stops receiving stream data.
 
void send (Buffer< CanMessageData > *message, unsigned priority) override
 Handler callback for incoming messages.
 
- Public Member Functions inherited from FlowInterface< Buffer< CanMessageData > >
virtual Poolpool ()
 
virtual Buffer< CanMessageData > * type_helper ()
 This function is never user in the code, but GDB can use it to infer the correct message types.
 
Buffer< CanMessageData > * alloc ()
 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.
 

Private Attributes

StreamReceiverCanparent_
 Owning stream receiver object.
 

Additional Inherited Members

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

Detailed Description

Definition at line 254 of file StreamReceiver.cxx.

Constructor & Destructor Documentation

◆ StreamDataHandler()

openlcb::StreamReceiverCan::StreamDataHandler::StreamDataHandler ( StreamReceiverCan parent)
inline

Definition at line 257 of file StreamReceiver.cxx.

Member Function Documentation

◆ send()

void openlcb::StreamReceiverCan::StreamDataHandler::send ( Buffer< CanMessageData > *  message,
unsigned  priority 
)
inlineoverridevirtual

Handler callback for incoming messages.

Implements FlowInterface< Buffer< CanMessageData > >.

Definition at line 281 of file StreamReceiver.cxx.

◆ start()

void openlcb::StreamReceiverCan::StreamDataHandler::start ( NodeAlias  remote_alias,
NodeAlias  local_alias 
)
inline

Starts registration for receiving stream data with the given aliases.

Definition at line 262 of file StreamReceiver.cxx.

◆ stop()

void openlcb::StreamReceiverCan::StreamDataHandler::stop ( )
inline

Stops receiving stream data.

Definition at line 275 of file StreamReceiver.cxx.

Member Data Documentation

◆ parent_

StreamReceiverCan* openlcb::StreamReceiverCan::StreamDataHandler::parent_
private

Owning stream receiver object.

Definition at line 299 of file StreamReceiver.cxx.


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