Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
openlcb::NodeIdLookupFlow::ReplyHandler Class Reference

Class for listening to the ping response packets. More...

Inheritance diagram for openlcb::NodeIdLookupFlow::ReplyHandler:
FlowInterface< Buffer< GenMessage > >

Public Member Functions

 ReplyHandler (NodeIdLookupFlow *parent)
 Constructor.
 
 ~ReplyHandler ()
 Destructor. Unregisters the handler.
 
void send (Buffer< GenMessage > *message, unsigned priority) OVERRIDE
 Handler callback for incoming messages.
 
void set_alias_waiting (NodeAlias a)
 The parent flow calls this function when the handler needs to be activated.
 
- Public Member Functions inherited from FlowInterface< Buffer< GenMessage > >
virtual Poolpool ()
 
virtual void send (Buffer< GenMessage > *message, unsigned priority=UINT_MAX)=0
 Entry point to the flow.
 
virtual Buffer< GenMessage > * type_helper ()
 This function is never user in the code, but GDB can use it to infer the correct message types.
 
Buffer< GenMessage > * 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

NodeAlias aliasWaiting_ {0}
 Which node alias we are listening for a reply from.
 
NodeIdLookupFlowparent_
 Flow owning *this.
 

Additional Inherited Members

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

Detailed Description

Class for listening to the ping response packets.

Definition at line 273 of file IfCan.hxx.

Constructor & Destructor Documentation

◆ ReplyHandler()

openlcb::NodeIdLookupFlow::ReplyHandler::ReplyHandler ( NodeIdLookupFlow parent)
inline

Constructor.

Parameters
parentis the lookup flow that owns this handler.

Definition at line 278 of file IfCan.hxx.

◆ ~ReplyHandler()

openlcb::NodeIdLookupFlow::ReplyHandler::~ReplyHandler ( )
inline

Destructor. Unregisters the handler.

Definition at line 286 of file IfCan.hxx.

Member Function Documentation

◆ send()

void openlcb::NodeIdLookupFlow::ReplyHandler::send ( Buffer< GenMessage > *  message,
unsigned  priority 
)
inline

Handler callback for incoming messages.

Definition at line 293 of file IfCan.hxx.

◆ set_alias_waiting()

void openlcb::NodeIdLookupFlow::ReplyHandler::set_alias_waiting ( NodeAlias  a)
inline

The parent flow calls this function when the handler needs to be activated.

Definition at line 322 of file IfCan.hxx.

Member Data Documentation

◆ aliasWaiting_

NodeAlias openlcb::NodeIdLookupFlow::ReplyHandler::aliasWaiting_ {0}
private

Which node alias we are listening for a reply from.

Definition at line 329 of file IfCan.hxx.

◆ parent_

NodeIdLookupFlow* openlcb::NodeIdLookupFlow::ReplyHandler::parent_
private

Flow owning *this.

Definition at line 331 of file IfCan.hxx.


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