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

Message handler for incoming PIP responses. More...

Inheritance diagram for openlcb::PIPClient::PIPResponseHandler:
FlowInterface< Buffer< GenMessage > >

Public Member Functions

 PIPResponseHandler (PIPClient *parent)
 
void send (Buffer< GenMessage > *message, unsigned priority) OVERRIDE
 
- 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

PIPClientparent_
 

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

Message handler for incoming PIP responses.

Gets registered in the input inteface's dispatcher and proxies an incoming PIP response to wake up the parent flow.

Definition at line 204 of file PIPClient.hxx.

Constructor & Destructor Documentation

◆ PIPResponseHandler()

openlcb::PIPClient::PIPResponseHandler::PIPResponseHandler ( PIPClient parent)
inline

Definition at line 207 of file PIPClient.hxx.

Member Function Documentation

◆ send()

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

Definition at line 212 of file PIPClient.hxx.

Member Data Documentation

◆ parent_

PIPClient* openlcb::PIPClient::PIPResponseHandler::parent_
private

Definition at line 218 of file PIPClient.hxx.


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